Add else condition to set coverage type for Vehicle not listed

This commit is contained in:
Sujatha Anishetty 2024-07-12 14:14:41 -04:00
parent e975430393
commit ad17b4b60c
2 changed files with 5 additions and 2 deletions

View file

@ -163,8 +163,7 @@ export default {
];
const { vehicle, isITAC, isDeductible, serviceLocation } = store;
if ((isITAC || isDeductible)
&& vehicle.policyVehicleId >= 0) {
if (isITAC || isDeductible) {
promiseResultMap.push({
resultKey: 'getFinalDeductible',
promise: store.getFinalDeductible()

View file

@ -57,6 +57,7 @@ import {
noCoverageForSelectedVehicle,
repairWaivedForSelectedVehicle
} from '@/helpers/policy-vehicle-helper';
import coverageType from '@/constants/coverage-type';
export default {
name: 'policy-vehicles',
@ -215,6 +216,9 @@ export default {
endorsements: this.endorsementsForSelectedVehicle
});
}
else{
useMainStore().updateCoverageType(coverageType.NONE);
}
return this.navigateForward();
},
navigateForward() {