I'm a part-year resident in two states but don't know which states 'other state tax credit' to take?

I am filing Part-Year Returns for two states (New York and California)

I moved from New York to California in September, and California is now my new home state.

However, I’m still working for the same NY based employer, but telecommuting. It appears that NY will be taxing income I earned while telecommuting from California as New York nonresident income.

Do I take the ‘other state tax credit’ on the New York or the California return (I’m confused since I was a part-year resident in both)?