thm-p3-configurator 0.0.52 → 0.0.54

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.
@@ -101,7 +101,7 @@ const InternalBranchSelectorModal = () => {
101
101
  });
102
102
  }, [selectedBranch, branchTypes, authSession, isLocation, existingDossierId, isSingleOrderPage]);
103
103
  (0, _react.useEffect)(() => {
104
- if (isLocation && !selectedBranch) {
104
+ if (isLocation && !selectedBranch && !isTMGOrganization) {
105
105
  var _authSession$branch3;
106
106
  dispatch({
107
107
  type: _OrderSessionContext.orderSessionActions.SET_SELECTED_BRANCH,
@@ -124,7 +124,7 @@ const InternalBranchSelectorModal = () => {
124
124
  className: "thm-configurator-wrapper--offset"
125
125
  }, ' ', /*#__PURE__*/_react.default.createElement(_FullPageSpinner.default, null), ' ');
126
126
  }
127
- const shouldShowModal = APP_CONFIG.internal && !selectedBranch && (isSingleOrderPage ? !existingDossierId : !existingDossierId && !isTMGOrganization);
127
+ const shouldShowModal = APP_CONFIG.internal && !selectedBranch && !existingDossierId && isTMGOrganization;
128
128
  return /*#__PURE__*/_react.default.createElement(_Modal.default, {
129
129
  isOpen: shouldShowModal,
130
130
  title: 'Kies een vestiging:',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thm-p3-configurator",
3
- "version": "0.0.52",
3
+ "version": "0.0.54",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "author": "EnoRm.",