@tap-payments/auth-jsconnect 2.6.49-test → 2.6.52-test

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.
@@ -588,7 +588,7 @@ export var updateIndividualPersonalInfo = createAsyncThunk('individual/updateInd
588
588
  hasContact = email || mobile;
589
589
  hasPhone = mobile && (countryCode === null || countryCode === void 0 ? void 0 : countryCode.idd_prefix);
590
590
  hasIdentification = nid && (issuedCountry || identification_id_type || expiryDate);
591
- hasBirth = placeOfBirthCity || placeOfBirthCountry;
591
+ hasBirth = (placeOfBirthCity === null || placeOfBirthCity === void 0 ? void 0 : placeOfBirthCity.id) || (placeOfBirthCountry === null || placeOfBirthCountry === void 0 ? void 0 : placeOfBirthCountry.iso2);
592
592
  nameIsEditable = userName.first && !(isNameENNonEditable && isNameARNonEditable);
593
593
  contact = hasContact && !(isEmailNonEditable && isMobileCountryNonEditable && isMobileNumberNonEditable)
594
594
  ? __assign({ email: isEmailNonEditable ? undefined : email }, (!(isMobileCountryNonEditable && isMobileNumberNonEditable) &&
@@ -60,9 +60,9 @@ var BrandList = function (_a) {
60
60
  setAnchorEl(null);
61
61
  (_a = rest.onListClose) === null || _a === void 0 ? void 0 : _a.call(rest);
62
62
  };
63
- var getBrandName = function (_a) {
64
- var name = _a.name;
65
- return (isAr ? name === null || name === void 0 ? void 0 : name.ar : name === null || name === void 0 ? void 0 : name.en) || '';
63
+ var getBrandName = function (brand) {
64
+ var _a, _b;
65
+ return (isAr ? (_a = brand === null || brand === void 0 ? void 0 : brand.name) === null || _a === void 0 ? void 0 : _a.ar : (_b = brand === null || brand === void 0 ? void 0 : brand.name) === null || _b === void 0 ? void 0 : _b.en) || '';
66
66
  };
67
67
  var getBrandId = function (item) {
68
68
  return item.id || '';
@@ -15,7 +15,7 @@ var SalesChannels = function (_a) {
15
15
  var channelList = (responseBody || {}).channel_list;
16
16
  var selectedBrandControl = getValues('selectedBrandItem');
17
17
  React.useEffect(function () {
18
- if (selectedBrandItem.id) {
18
+ if (selectedBrandItem === null || selectedBrandItem === void 0 ? void 0 : selectedBrandItem.id) {
19
19
  setValue('selectedBrandItem', selectedBrandItem);
20
20
  var sales = mapSalesChannel(selectedBrandItem.channel_services || []);
21
21
  field.onChange(sales);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.6.49-test",
3
+ "version": "2.6.52-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",