How does EV state tax credit work?

I’m considering leasing a Chevy Bolt EV (seeing the good deals) but wonder how the state tax credit works if I plan on starting the lease in MA and then moving/registering in MD the same year. Thoughts? Is it still a good deal or would I be missing out on the tax credit?