Merge pull request #1696 from Safelite/feature/clear-expired-funnel-cookies

Clear funnelsessioninfo when expired, insteaed of just state
This commit is contained in:
chloeherdsafelite 2024-01-19 10:48:19 -05:00 committed by GitHub
commit 52bbb97a49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,6 +51,7 @@ const routes = [
// If the saved session has timed out, clear the session, execute 404 logic.
if (getFunnelCookie() !== null && !isSavedSessionStillActive()) {
await baseMixin.methods.dispatchStoreAction(storeActions.RESET_STATE);
deleteFunnelCookie();
GoToFunnelStartOn404(next);
}