Merge pull request #310 from Safelite/feature/CSR-99

Stopped 404 from happening on initial load
This commit is contained in:
Frank Rua 2022-03-30 10:35:04 -04:00 committed by GitHub
commit 32fed40eec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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