From 6ddd228fef1b5425238ff578ba1c73cce23075d3 Mon Sep 17 00:00:00 2001 From: Josh Dassinger Date: Tue, 9 Apr 2024 14:35:43 -0500 Subject: [PATCH] SSR-1049 Temp Fix for Vehicle Service Changes --- src/store/index.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index c3e1a55a..0ea6e34b 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1574,13 +1574,10 @@ export const useMainStore = defineStore({ this.order.vehicle.imageVifNumber = vehicle.imageVifNumber; this.order.vehicle.imageColor = vehicle.imageVifColor; - if (vehicle.canSafeliteService) { - if (this.isBailout && this.bailoutCode === bailoutCode.HeavyTruckVehicle) { - // reset previously set bailout if vehicle can be serviced. - this.resetBailout(); - } - } else { + if (vehicle.canSafeliteService !== undefined && !vehicle.canSafeliteService) { this.setBailout(bailoutMessage.HeavyTruckVehicle(vehicle.carId)); + } else if (this.isBailout && this.bailoutCode === bailoutCode.HeavyTruckVehicle) { + this.resetBailout(); } // These could be undefined