Is my grammar correct in this sentence and should it be effect or affect? Thank you

A year later, and I still haven't completely figured out how to deal with what I'm going through and not let it affect how I go about everything else.

affect is correct.