thm-p3-configurator 0.0.375 → 0.0.376

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.
@@ -212,6 +212,10 @@ const buildLeaseCompanyOption = function buildLeaseCompanyOption() {
212
212
  }
213
213
  };
214
214
  };
215
+ const getBranchCity = function getBranchCity() {
216
+ let branch = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
217
+ return (branch === null || branch === void 0 ? void 0 : branch.city) || (branch === null || branch === void 0 ? void 0 : branch.gemeente) || '';
218
+ };
215
219
  const InternalAppointmentForm = _ref => {
216
220
  var _branchTypes$byId$aut, _authSession$branch, _authSession$branch2, _contextCustomer$note2;
217
221
  let {
@@ -1108,8 +1112,9 @@ const InternalAppointmentForm = _ref => {
1108
1112
  if (branch.street) {
1109
1113
  updateCustomerField('streetName', branch.street);
1110
1114
  }
1111
- if (branch.city) {
1112
- updateCustomerField('city', branch.city);
1115
+ const branchCity = getBranchCity(branch);
1116
+ if (branchCity) {
1117
+ updateCustomerField('city', branchCity);
1113
1118
  }
1114
1119
  if (branch.street2) {
1115
1120
  updateCustomerField('houseNumber', branch.street2);
@@ -169,6 +169,10 @@ const buildLeaseCompanyOption = function buildLeaseCompanyOption() {
169
169
  }
170
170
  };
171
171
  };
172
+ const getBranchCity = function getBranchCity() {
173
+ let branch = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
174
+ return (branch === null || branch === void 0 ? void 0 : branch.city) || (branch === null || branch === void 0 ? void 0 : branch.gemeente) || '';
175
+ };
172
176
  const internalQuotationFormSchema = (0, _yup.object)({
173
177
  ownershipType: (0, _yup.string)().required(_constants__.FORM_ERROR_MESSAGES.required),
174
178
  leaseNumber: (0, _yup.string)().nullable(),
@@ -780,8 +784,9 @@ const InternalQuotationForm = _ref => {
780
784
  if (branch.street) {
781
785
  updateCustomerField('streetName', branch.street);
782
786
  }
783
- if (branch.city) {
784
- updateCustomerField('city', branch.city);
787
+ const branchCity = getBranchCity(branch);
788
+ if (branchCity) {
789
+ updateCustomerField('city', branchCity);
785
790
  }
786
791
  if (branch.street2) {
787
792
  updateCustomerField('houseNumber', branch.street2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thm-p3-configurator",
3
- "version": "0.0.375",
3
+ "version": "0.0.376",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "author": "EnoRm.",