CSR-1855 prettier
This commit is contained in:
parent
3c8147081f
commit
0c8ff99726
1 changed files with 5 additions and 5 deletions
|
|
@ -449,6 +449,8 @@ async function DisplayPageError() {
|
||||||
baseMixin.methods.dispatchStoreAction(storeActions.RESET_SAVE_SESSION_PROMISE);
|
baseMixin.methods.dispatchStoreAction(storeActions.RESET_SAVE_SESSION_PROMISE);
|
||||||
const pageError = getQuerystringParameter(queryStrings.PAGE_ERROR);
|
const pageError = getQuerystringParameter(queryStrings.PAGE_ERROR);
|
||||||
|
|
||||||
|
// 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.
|
||||||
if (pageError) {
|
if (pageError) {
|
||||||
var errorCount = Number(pageError);
|
var errorCount = Number(pageError);
|
||||||
if (errorCount > 1) {
|
if (errorCount > 1) {
|
||||||
|
|
@ -459,16 +461,14 @@ async function DisplayPageError() {
|
||||||
path: "/",
|
path: "/",
|
||||||
query: { fmgPage: "vehicle" },
|
query: { fmgPage: "vehicle" },
|
||||||
});
|
});
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
errorCount++;
|
errorCount++;
|
||||||
router.push({
|
router.push({
|
||||||
path: "/",
|
path: "/",
|
||||||
query: { fmgPage: "vehicle", pageError: errorCount },
|
query: { fmgPage: "vehicle", pageError: errorCount },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
router.push({
|
router.push({
|
||||||
path: "/",
|
path: "/",
|
||||||
query: { fmgPage: "vehicle", pageError: "1" },
|
query: { fmgPage: "vehicle", pageError: "1" },
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue