Merge pull request #806 from Safelite/bug/brydon/SSR-1441
Reseting bailout when vehicle state cleared and heavy truck bailout
This commit is contained in:
commit
9e7c2d6a3f
2 changed files with 4 additions and 5 deletions
|
|
@ -198,8 +198,6 @@ describe('vehicle-lookup.vue', () => {
|
|||
answersFromCms: vinLookupMethodsMockData.Answers
|
||||
});
|
||||
|
||||
useMainStore().updateVehicleVin = jest.fn();
|
||||
|
||||
const lookupByManualVinOptionLabel = wrapper
|
||||
.find('[data-test-id="vin-lookup-methods-button-question"] label[for="VinLookupMethods-ManualVin"]');
|
||||
await lookupByManualVinOptionLabel.trigger('mousedown');
|
||||
|
|
|
|||
|
|
@ -1748,9 +1748,6 @@ export const useMainStore = defineStore({
|
|||
this.order.originalDeductible = coverage.deductible;
|
||||
this.order.currentDeductible = coverage.deductible;
|
||||
},
|
||||
updateVehicleVin(vin) {
|
||||
this.order.vehicle.vin = vin;
|
||||
},
|
||||
|
||||
resetOrder() {
|
||||
this.order.referralNumber = null;
|
||||
|
|
@ -1817,6 +1814,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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue