feature/IO-3255-simplified-parts-management - Checkpoint / Meeting changes
This commit is contained in:
@@ -345,13 +345,13 @@ export function* SetAuthLevelFromShopDetails({ payload }) {
|
||||
payload.features?.allAccess === true
|
||||
? window.$crisp.push(["set", "session:segments", [["allAccess"]]])
|
||||
: (() => {
|
||||
const featureKeys = Object.keys(payload.features).filter(
|
||||
(key) =>
|
||||
payload.features[key] === true ||
|
||||
(typeof payload.features[key] === "string" && !isNaN(Date.parse(payload.features[key])))
|
||||
);
|
||||
window.$crisp.push(["set", "session:segments", [["basic", ...featureKeys]]]);
|
||||
})();
|
||||
const featureKeys = Object.keys(payload.features).filter(
|
||||
(key) =>
|
||||
payload.features[key] === true ||
|
||||
(typeof payload.features[key] === "string" && !isNaN(Date.parse(payload.features[key])))
|
||||
);
|
||||
window.$crisp.push(["set", "session:segments", [["basic", ...featureKeys]]]);
|
||||
})();
|
||||
|
||||
InstanceRenderManager({
|
||||
executeFunction: true,
|
||||
@@ -361,8 +361,9 @@ export function* SetAuthLevelFromShopDetails({ payload }) {
|
||||
}
|
||||
});
|
||||
|
||||
//Set whether it is for parts management only.
|
||||
//Set whether it is for parts management only.
|
||||
|
||||
// TODO: This is a temp fix we do not want to do a check on true
|
||||
yield put(setPartsManagementOnly(true || payload.features.partsManagementOnly));
|
||||
} catch (error) {
|
||||
console.warn("Couldnt find $crisp.", error.message);
|
||||
|
||||
Reference in New Issue
Block a user