Some additional refinements.
This commit is contained in:
parent
9772637fbc
commit
001f1efea1
2 changed files with 7 additions and 8 deletions
|
|
@ -44,10 +44,10 @@ const routes = [
|
|||
}
|
||||
|
||||
try {
|
||||
await runExperiments(issPageToUse);
|
||||
await runExperiments(issPageToUse);
|
||||
} catch (error) {
|
||||
|
||||
}
|
||||
console.error('Failed to run experiments during route navigation.', error);
|
||||
}
|
||||
}
|
||||
|
||||
// Intercept all navigation if a submitted order exists in storage
|
||||
|
|
|
|||
|
|
@ -2554,11 +2554,10 @@ export const useMainStore = defineStore({
|
|||
logExperimentIfExists(pageName, universe) {
|
||||
const experiment = this.applicationUser.experiments.find((e) => e.universeName === universe);
|
||||
if (experiment !== undefined) {
|
||||
try {
|
||||
this.logExperimentExposure(pageName, experiment);
|
||||
} catch(error) {
|
||||
|
||||
}
|
||||
void this.logExperimentExposure(pageName, experiment)
|
||||
.catch((error) => {
|
||||
console.error(`Failed to log experiment exposure: ${error?.data ?? error}`);
|
||||
});
|
||||
}
|
||||
},
|
||||
logPageView({ userId, sessionKey, pageName, referralSequenceNumber, parentAccountNumber, sessionId, action, event, shouldUseSessionId, experimentsForUser }) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue