thm-p3-configurator 0.0.300 → 0.0.301

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,7 +384,7 @@ 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
389
  dispatch({
390
390
  type: _OrderSessionContext.orderSessionActions.SET_IS_TOW_CENTER_BRANCH,
@@ -419,7 +419,7 @@ const InternalBranchSelectorModal = () => {
419
419
  }
420
420
  });
421
421
  }
422
- }, [selectedBranch, branchById, singleOrderFormulaCode, dispatch]);
422
+ }, [selectedBranch, branchById, singleOrderFormulaCode, isTMGOrganization, dispatch]);
423
423
  const handlePrimaryButtonClicked = () => {
424
424
  dispatch({
425
425
  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.301",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "author": "EnoRm.",