diff --git a/src/layouts/policy-vehicles/policy-vehicles.vue b/src/layouts/policy-vehicles/policy-vehicles.vue index 021772c6..18ecfbf1 100644 --- a/src/layouts/policy-vehicles/policy-vehicles.vue +++ b/src/layouts/policy-vehicles/policy-vehicles.vue @@ -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 []; diff --git a/src/store/index.js b/src/store/index.js index b9d40f81..54dc38e5 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -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);