thm-p3-configurator 0.0.264 → 0.0.265

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.
@@ -145,6 +145,7 @@ function _toPrimitive(t, r) {
145
145
  const ProductCartTable = () => {
146
146
  const formula = (0, _FormulaContext.useFormula)();
147
147
  const isThc = formula === _constants__.CONFIGURATOR_FORMULAS.THC;
148
+ const isTowFormula = formula === _constants__.CONFIGURATOR_FORMULAS.TOW || formula === _constants__.CONFIGURATOR_FORMULAS.TM;
148
149
  const isTmg = (0, _useIsTmg.useIsTmg)();
149
150
  const isTowmotive = (0, _useIsTowmotive.useIsTowmotive)();
150
151
  const [isToggled, setIsToggled] = (0, _react.useState)(false);
@@ -171,7 +172,8 @@ const ProductCartTable = () => {
171
172
  }, dispatch] = (0, _OrderSessionContext.useOrderSession)();
172
173
 
173
174
  // Determine display mode
174
- const displayMode = (0, _cartTable2.getCartTableDisplayMode)(isToggled, isTmg);
175
+ const useTmgDisplayMode = isTmg && !isTowFormula;
176
+ const displayMode = (0, _cartTable2.getCartTableDisplayMode)(isToggled, useTmgDisplayMode);
175
177
  const handleVehicleCodingDiscountChange = function handleVehicleCodingDiscountChange(value) {
176
178
  let articleNumber = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
177
179
  const sanitized = value === null || value === void 0 ? void 0 : value.toString().replace(/[^0-9]/g, '');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thm-p3-configurator",
3
- "version": "0.0.264",
3
+ "version": "0.0.265",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "author": "EnoRm.",