From 0c8ff997265eabc30ee8d374b32bc0be2141ffbc Mon Sep 17 00:00:00 2001 From: CarlNation <32103961+CarlNation@users.noreply.github.com> Date: Wed, 28 Feb 2024 09:53:38 -0500 Subject: [PATCH] CSR-1855 prettier --- src/router/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 415683af3..1b4166922 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -448,7 +448,9 @@ async function DisplayPageError() { baseMixin.methods.dispatchStoreAction(storeActions.RESET_SAVE_SESSION_PROMISE); 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) { var errorCount = Number(pageError); if (errorCount > 1) { @@ -459,16 +461,14 @@ async function DisplayPageError() { path: "/", query: { fmgPage: "vehicle" }, }); - } - else { + } else { errorCount++; router.push({ path: "/", query: { fmgPage: "vehicle", pageError: errorCount }, }); } - } - else { + } else { router.push({ path: "/", query: { fmgPage: "vehicle", pageError: "1" },