From cbaf479d0492717bebd7b3d8689c37d1d191c050 Mon Sep 17 00:00:00 2001 From: CarlNation <32103961+CarlNation@users.noreply.github.com> Date: Thu, 29 Feb 2024 06:56:11 -0500 Subject: [PATCH] CSR-1072 move insurance loss fields to damage object to match ISS comment out nav to insurance page until it's working. currently breaking the insurance flow for QA. --- src/layouts/quote/quote.vue | 13 +++++++++---- src/store/index.js | 8 ++++---- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue index 5672c05e6..c1dd44145 100644 --- a/src/layouts/quote/quote.vue +++ b/src/layouts/quote/quote.vue @@ -327,10 +327,15 @@ export default { const payment = this.$store.getters.payment; if (payment.isInsurance) { - this.$router.navigateWithSaving( - this.navigationScenarios.CLICKED_FORWARD_WITH_INSURANCE, - this.$route - ); + navigateToHeritageFunnel({ + shouldSaveSession: true, + pageNameToLog: "quote", + loadingModal: this.$refs.loadingModal, + }); + // this.$router.navigateWithSaving( + // this.navigationScenarios.CLICKED_FORWARD_WITH_INSURANCE, + // this.$route + // ); } else { this.$router.navigateWithSaving( this.navigationScenarios.CLICKED_FORWARD_WITH_CASH, diff --git a/src/store/index.js b/src/store/index.js index 5114bc95c..4db6b9fc2 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -84,6 +84,8 @@ const getDefaultState = () => { partQuestionAnswers: null, moldingQuestionAnswers: null, capabilityQuestionAnswers: null, + dateOfLoss: null, + damageCause: null, }, lineItems: { glassParts: null, @@ -123,8 +125,6 @@ const getDefaultState = () => { policy: { currentDeductible: 0, policyNumber: null, - dateOfLoss: null, - lossCause: null, isItac: false, additionalAuthFlag: null, isNoComp: false, @@ -514,6 +514,8 @@ export const mutations = { state.order.damage.glassToReplace = sessionInformation.order.damage.glassToReplace; state.order.damage.isRepair = sessionInformation.order.damage.isRepair; state.order.damage.numberOfChips = sessionInformation.order.damage.numberOfChips; + state.order.damage.dateOfLoss = sessionInformation.order.damage?.lossDate; + state.order.damage.damageCause = sessionInformation.order.damage?.damageCause; state.order.damage.partQuestionAnswers = sessionInformation.order.damage.partQuestionAnswers; @@ -599,8 +601,6 @@ export const mutations = { state.order.policy.additionalAuthFlag = sessionInformation.order.policy?.additionalAuthFlag; state.order.policy.isItac = sessionInformation.order.policy?.isItac; state.order.policy.policyNumber = sessionInformation.order.policy?.policyNumber; - state.order.policy.dateOfLoss = sessionInformation.order.policy?.lossDate; - state.order.policy.lossCause = sessionInformation.order.policy?.lossCause; state.order.policy.insuranceCompanyName = sessionInformation.order.policy?.insuranceCompanyName; state.order.policy.isNoComp = sessionInformation.order.policy?.noComprehensive;