diff --git a/src/store/index.js b/src/store/index.js index fa0e4c0d..c582e318 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -113,7 +113,9 @@ const getDefaultState = () => ({ referralCorrelationId: '00000000-0000-0000-0000-000000000000', referralSequenceNumber: null, eon: null, - workOrderNumber: null + workOrderNumber: null, + originalDeductible: null, + currentDeductible: null }, applicationUser: { experiments: [], @@ -898,6 +900,10 @@ export const useMainStore = defineStore({ this.order.policy.deductible.replace = vehicle.deductible; this.order.policy.deductible.repair = vehicle?.repairWaived ?? false ? 0 : vehicle.deductible; + // TODO logic should be more complicated later on + this.order.originalDeductible = vehicle.deductible; + this.order.currentDeductible = vehicle.deductible; + this.resetSupportingItemsState(); this.resetVapsState(); },