Received 2021 NY wages in 2022. Did not work in NY in 2022. How do I allocate wages?

I had a job in NY in 2021. I left the job in December of 2021. I live in New Jersey. My employer processed some of those 2021 wages in 2022 and sent me a W2.

Now I have not worked in NY in 2022. So on my NY state return as well as my NJ state return should I allocate the wages as 100% NJ and 0% NY?