The IRC Treas Reg 1.30-1(b)(2)(i) state that you only have to recapture the tax credit if it ceases to be used as an electric vehicle.
(2) Recapture event -
(i) In general. A recapture event occurs if, within 3 full years from the date a qualified electric vehicle is placed in service, the...