Revert "Load session before updating funnel cookie"

This reverts commit 73ec3ce9ee.
This commit is contained in:
Chloe Herd 2025-05-13 14:24:59 -04:00
parent 066de75a8e
commit d8c838f530

View file

@ -52,12 +52,6 @@ export async function beforeEach(to, from) {
}
}
// If sent from heritage, need to load session.
const fromHeritageFlag = consumeQueryFromStash(queryStrings.FROM_HERITAGE);
if (fromHeritageFlag) {
await loadSessionIfPresent(true, routeData.SERVICE_LOCATION.name);
}
// Process funnel cookie.
updateOrCreateFunnelCookie();
@ -67,6 +61,12 @@ export async function beforeEach(to, from) {
debugLog(" funnel cookie after: ", getFunnelCookie());
}
// If sent from heritage, need to load session.
const fromHeritageFlag = consumeQueryFromStash(queryStrings.FROM_HERITAGE);
if (fromHeritageFlag) {
await loadSessionIfPresent(true, routeData.SERVICE_LOCATION.name);
}
// Update if logging is enabled.
checkLogParam();