NYC to NJ resident move NYC bonus tax

Hello,

 

I moved from NYC to NJ in Jan 2021. My office address also changed from NYC to NJ (my employer has an NJ office). I got a bonus in March 2021 from my employer. The bonus partly is for work that I did while residing in NYC. Do I have to pay NYC taxes even though I was an NJ resident and was based out of the NJ office?

 

Thanks!