Reseting bailout when vehicle state cleared and heavy truck bailout

This commit is contained in:
Michaela Brydon 2024-07-30 12:21:08 -04:00
parent a436fdc145
commit 9f6c83db74

View file

@ -1748,6 +1748,7 @@ export const useMainStore = defineStore({
this.order.originalDeductible = coverage.deductible;
this.order.currentDeductible = coverage.deductible;
},
// TODO do we need to reset vehicle info when this is called?
updateVehicleVin(vin) {
this.order.vehicle.vin = vin;
},
@ -1817,6 +1818,10 @@ export const useMainStore = defineStore({
this.order.vehicle.registration.zipCode = null;
this.order.vehicle.registration.firstName = null;
this.order.vehicle.registration.lastName = null;
if (this.isBailout && this.bailoutCode === bailoutCode.HeavyTruckVehicle) {
this.resetBailout();
}
},
resetGlassPartsState() {