thm-p3-configurator 0.0.300 → 0.0.302

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -384,8 +384,9 @@ const InternalBranchSelectorModal = () => {
384
384
  (0, _react.useEffect)(() => {
385
385
  if (!selectedBranch || !branchById) return;
386
386
  const isTowCenter = (branchById === null || branchById === void 0 ? void 0 : branchById.towCenterVestiging) === true;
387
- const isTmgFormula = singleOrderFormulaCode === _constants__.CONFIGURATOR_FORMULAS.TMG;
387
+ const isTmgFormula = isTMGOrganization === true;
388
388
  const shouldEnable = isTowCenter || isTmgFormula;
389
+ console.log(isTowCenter, isTmgFormula, shouldEnable);
389
390
  dispatch({
390
391
  type: _OrderSessionContext.orderSessionActions.SET_IS_TOW_CENTER_BRANCH,
391
392
  payload: {
@@ -419,7 +420,7 @@ const InternalBranchSelectorModal = () => {
419
420
  }
420
421
  });
421
422
  }
422
- }, [selectedBranch, branchById, singleOrderFormulaCode, dispatch]);
423
+ }, [selectedBranch, branchById, singleOrderFormulaCode, isTMGOrganization, dispatch]);
423
424
  const handlePrimaryButtonClicked = () => {
424
425
  dispatch({
425
426
  type: _OrderSessionContext.orderSessionActions.SET_SELECTED_BRANCH,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thm-p3-configurator",
3
- "version": "0.0.300",
3
+ "version": "0.0.302",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "author": "EnoRm.",