State tax filing

My residency change was effective by the end of 2020 so there was no change there in 2021.  The change was to my employment location after the nexus was created in PA.  Is the W-2 incorrect?