From 1b1702ed5f14c080bf26483b18c19455c648c395 Mon Sep 17 00:00:00 2001 From: CarlNation <32103961+CarlNation@users.noreply.github.com> Date: Fri, 1 Mar 2024 15:39:39 -0500 Subject: [PATCH 1/2] CSR-1072 CSR-1072 do not run analytics calls without page name --- src/router/index.js | 2 +- src/store/index.js | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/router/index.js b/src/router/index.js index f8a8dd785..3214e1111 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -72,7 +72,7 @@ const routes = [ // the saveSessionPromise will no longer point to a valid promise baseMixin.methods.dispatchStoreAction(storeActions.RESET_SAVE_SESSION_PROMISE); - if (!to.query.fmgPage.startsWith("payment")) { + if (!to.query.fmgPage?.startsWith("payment")) { //payment pages used to return from safelitehop so exclude here // Remove the parameter after quote release const loadSessionResponse = await loadSessionIfPresent( diff --git a/src/store/index.js b/src/store/index.js index 06a5631d3..7118e8be6 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1101,6 +1101,10 @@ export const actions = { parentAccountNumber, } ) { + if (!pageName) { + return; + } + var payload = { userId: userId, sessionKey: sessionKey, @@ -1149,6 +1153,10 @@ export const actions = { parentAccountNumber, } ) { + if (!pageName) { + return; + } + var payload = { userId: userId, sessionKey: sessionKey, From 01f35a37aeac8bfe5fb6fdf1f79fe4c8b907d8fc Mon Sep 17 00:00:00 2001 From: CarlNation <32103961+CarlNation@users.noreply.github.com> Date: Fri, 1 Mar 2024 15:46:50 -0500 Subject: [PATCH 2/2] CSR-1072 prettier --- src/store/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index 7118e8be6..242ee9fc1 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1104,7 +1104,7 @@ export const actions = { if (!pageName) { return; } - + var payload = { userId: userId, sessionKey: sessionKey, @@ -1156,7 +1156,7 @@ export const actions = { if (!pageName) { return; } - + var payload = { userId: userId, sessionKey: sessionKey,