thm-p3-configurator 0.0.162 → 0.0.164

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.
@@ -116,7 +116,7 @@ const ProductCartSide = () => {
116
116
  executionAnswer1,
117
117
  executionAnswer2,
118
118
  durationAnswer,
119
- selectBoardComputerUpdate: selectedBoardComputer != null,
119
+ selectBoardComputerUpdate: selectedBoardComputer != null ? 'true' : 'false',
120
120
  cart: cartInput ? JSON.stringify(cartInput) : undefined,
121
121
  formula,
122
122
  branchId: isToggled ? selectedBranch : undefined
@@ -170,7 +170,7 @@ const ProductCartTable = () => {
170
170
  executionAnswer1,
171
171
  executionAnswer2,
172
172
  durationAnswer,
173
- selectBoardComputerUpdate: selectedBoardComputer != null,
173
+ selectBoardComputerUpdate: selectedBoardComputer != null ? 'true' : 'false',
174
174
  cart: JSON.stringify(cartInput || []),
175
175
  branchId: isToggled ? selectedBranch : null,
176
176
  discountAmount,
@@ -28,7 +28,6 @@ var _react = _interopRequireWildcard(require("react"));
28
28
  var _reactRouter = require("react-router");
29
29
  var _yup = require("yup");
30
30
  var _queries = require("../../__api__/queries");
31
- var _useIsTmg = require("../../__hooks__/useIsTmg");
32
31
  var _LinkButton = _interopRequireDefault(require("../../__components__/Buttons/LinkButton"));
33
32
  var _NavigationButton = _interopRequireDefault(require("../../__components__/Buttons/NavigationButton"));
34
33
  var _PrimaryButton = _interopRequireDefault(require("../../__components__/Buttons/PrimaryButton"));
@@ -47,6 +46,7 @@ var _OrderSessionContext = require("../../__context__/OrderSessionContext");
47
46
  var _helpers__ = require("../../__helpers__");
48
47
  var _product = require("../../__helpers__/product");
49
48
  var _ui = require("../../__helpers__/ui");
49
+ var _useIsTmg = require("../../__hooks__/useIsTmg");
50
50
  var _LicensePlateValidator = _interopRequireDefault(require("../../__services__/LicensePlateValidator"));
51
51
  var _LocalStorageWorker = require("../../__services__/LocalStorageWorker");
52
52
  var _InternalAppointmentSuccessModal = _interopRequireDefault(require("./InternalAppointmentSuccessModal"));
@@ -813,22 +813,6 @@ const InternalAppointmentForm = _ref => {
813
813
  companyName: branch.name
814
814
  }
815
815
  });
816
- if (branch.email) {
817
- dispatch({
818
- type: _OrderSessionContext.orderSessionActions.SET_CUSTOMER_EMAIL,
819
- payload: {
820
- email: branch.email
821
- }
822
- });
823
- }
824
- if (branch.phone) {
825
- dispatch({
826
- type: _OrderSessionContext.orderSessionActions.SET_CUSTOMER_PHONE_NUMBER,
827
- payload: {
828
- phoneNumber: branch.phone
829
- }
830
- });
831
- }
832
816
  if (branch.postalCode) {
833
817
  dispatch({
834
818
  type: _OrderSessionContext.orderSessionActions.SET_CUSTOMER_ZIP_CODE,
@@ -1224,7 +1208,7 @@ const InternalAppointmentForm = _ref => {
1224
1208
  name: 'Datum',
1225
1209
  isRequired: true,
1226
1210
  label: "Datum",
1227
- value: appointment !== null && appointment !== void 0 && appointment.date ? new Date(appointment === null || appointment === void 0 ? void 0 : appointment.date) : null,
1211
+ initialValue: appointment !== null && appointment !== void 0 && appointment.date ? new Date(appointment === null || appointment === void 0 ? void 0 : appointment.date) : null,
1228
1212
  isStrict: false,
1229
1213
  errorMessage: errors === null || errors === void 0 ? void 0 : errors['date']
1230
1214
  }), /*#__PURE__*/_react.default.createElement(_TimePickerInput.default, {
@@ -1234,7 +1218,7 @@ const InternalAppointmentForm = _ref => {
1234
1218
  time: value
1235
1219
  }
1236
1220
  }),
1237
- value: appointment !== null && appointment !== void 0 && appointment.time ? new Date(appointment === null || appointment === void 0 ? void 0 : appointment.time) : null,
1221
+ initialValue: appointment !== null && appointment !== void 0 && appointment.time ? new Date(appointment === null || appointment === void 0 ? void 0 : appointment.time) : null,
1238
1222
  name: 'Tijd',
1239
1223
  isRequired: true,
1240
1224
  label: "Tijd",
@@ -593,22 +593,6 @@ const InternalQuotationForm = _ref => {
593
593
  companyName: branch.name
594
594
  }
595
595
  });
596
- if (branch.email) {
597
- dispatch({
598
- type: _OrderSessionContext.orderSessionActions.SET_CUSTOMER_EMAIL,
599
- payload: {
600
- email: branch.email
601
- }
602
- });
603
- }
604
- if (branch.phone) {
605
- dispatch({
606
- type: _OrderSessionContext.orderSessionActions.SET_CUSTOMER_PHONE_NUMBER,
607
- payload: {
608
- phoneNumber: branch.phone
609
- }
610
- });
611
- }
612
596
  if (branch.postalCode) {
613
597
  dispatch({
614
598
  type: _OrderSessionContext.orderSessionActions.SET_CUSTOMER_ZIP_CODE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thm-p3-configurator",
3
- "version": "0.0.162",
3
+ "version": "0.0.164",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "author": "EnoRm.",