Work From Home State Filing

Ask for my son. He worked from home for all of 2023 in SC for a company based out of TX.  When they sent him his W2 the state on it said TX.  Is this correct or does his employer need to fix this? I always thought it was the state in which you lived. Now we are not sure if he pays taxes in SC or TX. Please help him. Thank you.