CSR-759 Ensure funnel cookie is created if it doesn't exist

This commit is contained in:
Katie 2022-08-18 11:56:22 -04:00
parent b23361d0a3
commit 5ca2273b47

View file

@ -137,10 +137,10 @@ function setFunnelCookieProperties(properties) {
Object.keys(properties).forEach(key => {
cookie[key] = properties[key];
});
const cookieValueJson = JSON.stringify(cookie);
createOrUpdateCookie(cookieNames.FUNNEL_SESSION_INFO, cookieValueJson, {});
}
const cookieValueJson = JSON.stringify(cookie ?? {});
createOrUpdateCookie(cookieNames.FUNNEL_SESSION_INFO, cookieValueJson, {});
}
}