Merge pull request #821 from Safelite/defect/digital/fix-entry-page-save-session-call
Fix extra save session call from entry page causing invalid referral num
This commit is contained in:
commit
8eea7c3628
1 changed files with 1 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ router.afterEach(async (to, from) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const skipSaveSession = !!router.options.history.state[routerParams.SKIP_SAVE_SESSION];
|
const skipSaveSession = !!router.options.history.state[routerParams.SKIP_SAVE_SESSION];
|
||||||
if (!skipSaveSession && !store.hasSubmittedOrder()) {
|
if (from.name !== undefined && !skipSaveSession && !store.hasSubmittedOrder()) {
|
||||||
await saveSession({});
|
await saveSession({});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue