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