Merge pull request #550 from Safelite/feature/reset-state

reset state on timeout
This commit is contained in:
Frank Rua 2022-06-10 12:20:31 -06:00 committed by GitHub
commit 5449a65404
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,6 +46,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);
await GoToFunnelStartOn404(next);
}