RSU vesting and living in two states

Hello

I lived in Colorado till May 2021 and moved to Michigan in June 2021. My RSUs were allocated to me in 2020 when I was in Colorado but they were vested for the first time in Aug 2021 when I started living in Michigan. My employer sells some stocks to cover taxes. I see in my W2 and in my paystubs thet my employer has withheld all the RSU related taxes to the state of Michigan. Is that correct ? Do I need to pay all the taxes on my vested RSUs to the Michigan state or do I need to make calculations about how many days I lived in state of Colorado and fill my taxes accordingly