From b4a0e36e6b4ce04ea47b8e356e6ebba15e1a7366 Mon Sep 17 00:00:00 2001 From: FrankRua Date: Wed, 30 Mar 2022 10:31:27 -0400 Subject: [PATCH] Stopped 404 from happening on initial load --- src/router/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/index.js b/src/router/index.js index bbb58e725..fc24e70c4 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -41,7 +41,7 @@ const routes = [ try { // If the saved session has timed out, clear the session, execute 404 logic. - if (!isSavedSessionStillActive()) { + if (getFunnelCookie() !== null && !isSavedSessionStillActive()) { await GoToFunnelStartOn404(next); }