Add else condition to set coverage type for Vehicle not listed
This commit is contained in:
parent
e975430393
commit
ad17b4b60c
2 changed files with 5 additions and 2 deletions
|
|
@ -163,8 +163,7 @@ export default {
|
||||||
];
|
];
|
||||||
|
|
||||||
const { vehicle, isITAC, isDeductible, serviceLocation } = store;
|
const { vehicle, isITAC, isDeductible, serviceLocation } = store;
|
||||||
if ((isITAC || isDeductible)
|
if (isITAC || isDeductible) {
|
||||||
&& vehicle.policyVehicleId >= 0) {
|
|
||||||
promiseResultMap.push({
|
promiseResultMap.push({
|
||||||
resultKey: 'getFinalDeductible',
|
resultKey: 'getFinalDeductible',
|
||||||
promise: store.getFinalDeductible()
|
promise: store.getFinalDeductible()
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,7 @@ import {
|
||||||
noCoverageForSelectedVehicle,
|
noCoverageForSelectedVehicle,
|
||||||
repairWaivedForSelectedVehicle
|
repairWaivedForSelectedVehicle
|
||||||
} from '@/helpers/policy-vehicle-helper';
|
} from '@/helpers/policy-vehicle-helper';
|
||||||
|
import coverageType from '@/constants/coverage-type';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'policy-vehicles',
|
name: 'policy-vehicles',
|
||||||
|
|
@ -215,6 +216,9 @@ export default {
|
||||||
endorsements: this.endorsementsForSelectedVehicle
|
endorsements: this.endorsementsForSelectedVehicle
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
useMainStore().updateCoverageType(coverageType.NONE);
|
||||||
|
}
|
||||||
return this.navigateForward();
|
return this.navigateForward();
|
||||||
},
|
},
|
||||||
navigateForward() {
|
navigateForward() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue