Allocation of part-year income to NY

I lived in NJ from January 1st to July 31st 2020 and was working a job located in NY (for a company based in IL).  From August 1st I was transferred to TX working in the same role.  I am filing a non-resident NY return and a part-year NJ resident return. 

 

My employer changed my tax residency correctly on the payroll side (I stopped paying NY income tax after I moved) and has issued W-2s for NY and NJ.  The NJ income appears correct as it reflects the income earned while I was a resident there, however the NY return shows the full-year's income including a bonus I received in December.

 

My question is how should I treat the NY income?  I'm assuming I should allocate my full year's income (including the bonus) based on the number of days or percentage of the income earned there. 

 

Thanks in advance.