Fix extra save session call from entry page causing invalid referral num

This commit is contained in:
Josh Dassinger 2024-08-14 12:11:05 -05:00
parent 30f8729dae
commit cff9674063

View file

@ -172,7 +172,7 @@ router.afterEach(async (to, from) => {
}
const skipSaveSession = !!router.options.history.state[routerParams.SKIP_SAVE_SESSION];
if (!skipSaveSession && !store.hasSubmittedOrder()) {
if (from.name !== undefined && !skipSaveSession && !store.hasSubmittedOrder()) {
await saveSession({});
}