State tax filing

Ok, then you will enter the tax on the return for the 2nd state in the credit for taxes paid on the resident return.

TurboTax does this computation when the non-resident return is completed by to the resident return.

Do it in that order and you should have no issues.