Paid state taxes for UI/SUI/paid family leave to NY and NJ

I moved between NY and NJ while working at the same company, and my W-2 had both NY and NJ taxes taken for Paid Family Leave and UI/SUI for the corresponding state while I was living there. For example, I had maxed out the NY Paid Family Leave annual tax, but then I was also paying the NJ Paid Family Leave tax during the other part of the year for the NJ portion. Is this appropriate or is there anything that I should do (such as when filing my returns to get one of the two states to give me a refund for those “duplicate” taxes, tell my employer, etc)? I realize they are for two separate states and it probably means that I just have to pay those taxes “twice,” but just wanted to confirm. Thank you.