thm-p3-configurator 0.0.63 → 0.0.65

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.
@@ -65,11 +65,15 @@ const LicensePlateForm = _ref => {
65
65
  } = _ref;
66
66
  const [{
67
67
  licensePlate,
68
- discountCode
68
+ discountCode,
69
+ singleOrderFormulaCode
69
70
  }, dispatch] = (0, _OrderSessionContext.useOrderSession)();
70
71
  const [filterLicensePlate, setFilterLicensePlate] = (0, _react.useState)(initialValue || '');
71
72
  const history = (0, _reactRouter.useHistory)();
72
- const formula = (0, _FormulaContext.useFormula)();
73
+ let formula = (0, _FormulaContext.useFormula)();
74
+ if (isFilter && singleOrderFormulaCode) {
75
+ formula = singleOrderFormulaCode;
76
+ }
73
77
  if (!isFilter) {
74
78
  (0, _queries.useQuestionsQuery)({
75
79
  licensePlate,
@@ -118,11 +118,15 @@ const QuestionsForm = _ref => {
118
118
  executionAnswer2,
119
119
  discountCode,
120
120
  execution1Options,
121
+ singleOrderFormulaCode,
121
122
  execution2Options,
122
123
  durationOptions,
123
124
  priceCalculationDate
124
125
  }, dispatch] = (0, _OrderSessionContext.useOrderSession)();
125
- const formula = (0, _FormulaContext.useFormula)();
126
+ let formula = (0, _FormulaContext.useFormula)();
127
+ if (isFilter && singleOrderFormulaCode) {
128
+ formula = singleOrderFormulaCode;
129
+ }
126
130
  const history = (0, _reactRouter.useHistory)();
127
131
  const {
128
132
  isLoadingQuestions,
@@ -118,8 +118,8 @@ const InternalSingleOrderProductOverview = _ref => {
118
118
  }, areArticlesError && /*#__PURE__*/_react.default.createElement(_DangerAlert.default, {
119
119
  message: "Er is iets fout gegaan bij het ophalen van de producten. Zorg dat je toegang hebt tot de geselecteerde vestiging. Klik op bestelling herstarten om de vestiging te wijzigen."
120
120
  }), !hasActiveFilters && /*#__PURE__*/_react.default.createElement(_EmptyState.default, {
121
- message: "Vind het product dat je zoekt",
122
- subMessage: "Stel de filters in om de producten op te halen"
121
+ message: "Vind het artikel dat je zoekt",
122
+ subMessage: "Stel de filters in om de artikelen op te halen"
123
123
  }), articles && hasActiveFilters && (articles === null || articles === void 0 || (_articles$articles = articles.articles) === null || _articles$articles === void 0 ? void 0 : _articles$articles.length) === 0 && /*#__PURE__*/_react.default.createElement(_EmptyState.default, {
124
124
  message: "Geen producten gevonden.",
125
125
  subMessage: "Probeer een ander filter toe te passen."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thm-p3-configurator",
3
- "version": "0.0.63",
3
+ "version": "0.0.65",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "author": "EnoRm.",