diff --git a/src/router/index.js b/src/router/index.js index 1b4166922..f8a8dd785 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -451,6 +451,11 @@ async function DisplayPageError() { // we use the pageError querystring as a counter to how many times a user has experienced an error and been routed here. // once they receive more than 1 pageerrors, we'll reset their state to hopefully correct any issues they may be having. + var navPage = fmgPageValues.VEHICLE; + if (store.getters.payment.insuranceCoverage.isVerified) { + navPage = fmgPageValues.VEHICLE_DAMAGE; + } + if (pageError) { var errorCount = Number(pageError); if (errorCount > 1) { @@ -459,19 +464,19 @@ async function DisplayPageError() { router.push({ path: "/", - query: { fmgPage: "vehicle" }, + query: { fmgPage: navPage }, }); } else { errorCount++; router.push({ path: "/", - query: { fmgPage: "vehicle", pageError: errorCount }, + query: { fmgPage: navPage, pageError: errorCount }, }); } } else { router.push({ path: "/", - query: { fmgPage: "vehicle", pageError: "1" }, + query: { fmgPage: navPage, pageError: "1" }, }); } } diff --git a/src/store/index.js b/src/store/index.js index 4db6b9fc2..06a5631d3 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -514,7 +514,7 @@ 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.dateOfLoss = sessionInformation.order.damage?.dateOfLoss; state.order.damage.damageCause = sessionInformation.order.damage?.damageCause; state.order.damage.partQuestionAnswers =