Stopped 404 from happening on initial load

This commit is contained in:
FrankRua 2022-03-30 10:31:27 -04:00
parent a1c5150039
commit b4a0e36e6b

View file

@ -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);
}