This commit is contained in:
Katie Kroell 2023-10-12 12:06:25 -04:00
parent 5a603f3b2c
commit 72f5f1e9e6
2 changed files with 2 additions and 1 deletions

View file

@ -121,7 +121,6 @@ export default {
const vehicle = this.policyVehicles.find((policyVehicle) =>
policyVehicle?.vin === this.selectedVehicleVin);
if (vehicle?.endorsements?.length > 0) {
return vehicle.endorsements;
}
return [];

View file

@ -76,6 +76,7 @@ const getDefaultState = () => ({
},
isITAC: null,
vehicles: [],
endorsements: [],
endorsementQuestionAnswers: null
},
customer: {
@ -1168,6 +1169,7 @@ export const useMainStore = defineStore({
: coverageStatuses.PENDING;
this.order.policy.deductible.replace = vehicle.deductible;
this.order.policy.deductible.repair = vehicle?.repairWaived ?? false ? 0 : vehicle.deductible;
this.order.policy.endorsements = vehicle?.endorsements;
// TODO logic should be more complicated later on
this.order.originalDeductible = parseFloat(vehicle.deductible);