Merge pull request #664 from Safelite/feature/CSR-512B

Added 'undefined' check for when we are attempting to pull the Concep…
This commit is contained in:
Leah Schumann 2022-08-17 11:18:50 -04:00 committed by GitHub
commit beecc39f70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,14 +51,17 @@ export default {
const experimentForLogging = store.getters.applicationUser.experiments.find(e => e.universeName === experimentUniverses.CONCEPT_FUNNEL); const experimentForLogging = store.getters.applicationUser.experiments.find(e => e.universeName === experimentUniverses.CONCEPT_FUNNEL);
// Log experiment exposure // If the concept funnel experiment is found, as it should be when coming from safelite.com, then log the experiment exposure.
baseMixin.methods.dispatchStoreAction(storeActions.LOG_EXPERIMENT_EXPOSURE, if (experimentForLogging !== undefined) {
{ // Log experiment exposure
userId: getDeviceIdValue(), baseMixin.methods.dispatchStoreAction(storeActions.LOG_EXPERIMENT_EXPOSURE,
sessionKey: getSessionKeyValue(), {
pageName: to.query.fmgPage, userId: getDeviceIdValue(),
experiment: experimentForLogging sessionKey: getSessionKeyValue(),
}, false); pageName: to.query.fmgPage,
experiment: experimentForLogging
}, false);
}
// Settle promises and get results // Settle promises and get results
const promiseResultMap = [ const promiseResultMap = [