Fixed an issue with the experiment object on log-custom-event.

This commit is contained in:
Jeremy Zimmerman 2022-11-08 11:56:01 -05:00
parent 2fae7004e2
commit 9e8fbcd791

View file

@ -9,10 +9,11 @@ import { headerKeys } from "@/constants/header-keys";
export default {
callHttpClient({ method, endpoint, payload, logApiCall = true}) {
return new Promise((resolve, reject) => {
const store = useMainStore();
const cfDistroUrl = applicationConfig.CONSUMER_CF_DISTRO;
const payloadAndAnalyticsData = Object.assign({}, payload, { AppName: "SelfService" });
const headers = {
[headerKeys.EXPERIMENT]: JSON.stringify(useMainStore.experimentSettings),
[headerKeys.EXPERIMENT]: JSON.stringify(store.experimentSettings),
};
axios({