Depends on State B’s laws. If it was NY, yeah, they’d want their cash, and legally it would be due to them. That said, the chances of them finding out are slim and none if your employer puts all of the income on one W2 with CA residency and does not report it to NYS. Moreover, after any pro-rated deductions, not sure how much net $$ woudl be due to NYS for two weeks of wages.