From 9f6c83db747f111655c6ecbb0fb55f6ebe446760 Mon Sep 17 00:00:00 2001 From: Michaela Brydon Date: Tue, 30 Jul 2024 12:21:08 -0400 Subject: [PATCH] Reseting bailout when vehicle state cleared and heavy truck bailout --- src/store/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/store/index.js b/src/store/index.js index d8a0082d..ab7ced30 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -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() {