State tax filing

When you get the credit by your home state for income earned in the other state, your home state is not double taxing you on that income.  
But....as far as this income goes, you will end up paying state taxes at the highest state rate for that income level.  For example, if you earn $10,000 in NY and NY taxes at one rate and PA at a different rate, you end up paying the higher rate.