Your dependent variable is a categorical (binary) variable,

not an interval scaled variable. Therefore, you deal with a

proportion, not with a mean value, and t-test is inappropriate.

You need to find a test for a proportion within 1 sample.

With kind regards

K.