Merge pull request #1779 from Safelite/feature/CSR-1072
CSR-1072 incorrect name
This commit is contained in:
commit
95f051c4c5
2 changed files with 9 additions and 4 deletions
|
|
@ -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.
|
// 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.
|
// 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) {
|
if (pageError) {
|
||||||
var errorCount = Number(pageError);
|
var errorCount = Number(pageError);
|
||||||
if (errorCount > 1) {
|
if (errorCount > 1) {
|
||||||
|
|
@ -459,19 +464,19 @@ async function DisplayPageError() {
|
||||||
|
|
||||||
router.push({
|
router.push({
|
||||||
path: "/",
|
path: "/",
|
||||||
query: { fmgPage: "vehicle" },
|
query: { fmgPage: navPage },
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
errorCount++;
|
errorCount++;
|
||||||
router.push({
|
router.push({
|
||||||
path: "/",
|
path: "/",
|
||||||
query: { fmgPage: "vehicle", pageError: errorCount },
|
query: { fmgPage: navPage, pageError: errorCount },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
router.push({
|
router.push({
|
||||||
path: "/",
|
path: "/",
|
||||||
query: { fmgPage: "vehicle", pageError: "1" },
|
query: { fmgPage: navPage, pageError: "1" },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -514,7 +514,7 @@ export const mutations = {
|
||||||
state.order.damage.glassToReplace = sessionInformation.order.damage.glassToReplace;
|
state.order.damage.glassToReplace = sessionInformation.order.damage.glassToReplace;
|
||||||
state.order.damage.isRepair = sessionInformation.order.damage.isRepair;
|
state.order.damage.isRepair = sessionInformation.order.damage.isRepair;
|
||||||
state.order.damage.numberOfChips = sessionInformation.order.damage.numberOfChips;
|
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.damageCause = sessionInformation.order.damage?.damageCause;
|
||||||
|
|
||||||
state.order.damage.partQuestionAnswers =
|
state.order.damage.partQuestionAnswers =
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue