thm-p3-configurator 0.0.64 → 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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thm-p3-configurator",
3
- "version": "0.0.64",
3
+ "version": "0.0.65",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "author": "EnoRm.",