CSR-514 Cleanup
This commit is contained in:
parent
2167c240bb
commit
fdf17ce4bc
3 changed files with 3 additions and 12 deletions
|
|
@ -36,14 +36,6 @@ export async function loadOrderIfPresent() {
|
|||
update the cookie.
|
||||
*/
|
||||
export async function saveOrder() {
|
||||
// TODO DELETE THIS, TEMP FOR TESTING
|
||||
baseMixin.methods.dispatchStoreAction(storeActions.RUN_EXPERIMENTS_FOR_TRIGGER, {
|
||||
userId: "test",
|
||||
triggerEvent: "test",
|
||||
triggerValue: "test"
|
||||
})
|
||||
// END DELETE
|
||||
|
||||
var saveOrderPromise;
|
||||
if (store.getters.applicationUser.saveOrderPromise) {
|
||||
// queue newest request after current saveOrderPromise resolves
|
||||
|
|
|
|||
|
|
@ -37,14 +37,13 @@ const routes = [
|
|||
return next(false);
|
||||
}
|
||||
|
||||
// TODO CSR-514 UNCOMMENT CONDITION
|
||||
// if (!store.getters.applicationUser.triggeredSiteEntry) {
|
||||
if (!store.getters.applicationUser.triggeredSiteEntry) {
|
||||
baseMixin.methods.dispatchStoreAction(storeActions.RUN_EXPERIMENTS_FOR_TRIGGER, {
|
||||
userId: getDeviceIdValue(),
|
||||
triggerEvent: experimentTriggers.SITE_ENTRY,
|
||||
triggerValue: applicationConfig.SITE_ENTRY_TRIGGER_VALUE
|
||||
})
|
||||
// }
|
||||
}
|
||||
|
||||
// If the saved session has timed out, clear the session, execute 404 logic.
|
||||
if (getFunnelCookie() !== null && !isSavedSessionStillActive()) {
|
||||
|
|
|
|||
|
|
@ -639,7 +639,7 @@ export const actions = {
|
|||
experimentOrder: context.getters.experimentOrder
|
||||
};
|
||||
|
||||
return globalMethods.callHttpClient({
|
||||
globalMethods.callHttpClient({
|
||||
method: endpoints.RunExperimentsForTrigger.method,
|
||||
endpoint: endpoints.RunExperimentsForTrigger.url,
|
||||
payload: payload,
|
||||
|
|
|
|||
Loading…
Reference in a new issue