Reapply "Only save session on nav if email or phone number is present"
This reverts commit a0dfd151e1.
This commit is contained in:
parent
7e211b4682
commit
5080aa90d9
1 changed files with 7 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ import { buildManualUrl } from "@/router/methods/helpers/build-manual-url";
|
|||
import { getDestination } from "@/router/methods/helpers/get-destination";
|
||||
import { savePageData } from "@/router/methods/helpers/save-page-data";
|
||||
import router from "@/router";
|
||||
import store from "@/store";
|
||||
|
||||
import { bailout } from "@/router/methods/error";
|
||||
|
||||
|
|
@ -34,7 +35,12 @@ async function navigate(scenario, currentPageName, withSaving = false, forceTopL
|
|||
}
|
||||
|
||||
if (withSaving) {
|
||||
await saveSession({ pageNameToLog: nextPage.name });
|
||||
if (
|
||||
store.getters?.applicationUser?.savedSessionId ||
|
||||
store.getters?.order?.customer?.emailAddress
|
||||
) {
|
||||
await saveSession({ pageNameToLog: nextPage.name });
|
||||
}
|
||||
}
|
||||
|
||||
// Some pages require manually setting the next url
|
||||
|
|
|
|||
Loading…
Reference in a new issue