@tap-payments/auth-jsconnect 2.15.1-beta → 2.15.3-beta

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.
@@ -373,7 +373,8 @@ export var settingsSlice = createSlice({
373
373
  builder.addCase(fetchAppSettingsSync.fulfilled, function (state, action) {
374
374
  var _a = action.payload, businessCountry = _a.businessCountry, countries = _a.countries, locale = _a.locale, deviceInfo = _a.deviceInfo, isValidOperator = _a.isValidOperator, merchant = _a.merchant, isMaturityExpress = _a.isMaturityExpress, ipCountry = _a.ipCountry;
375
375
  state.data.countries = countries;
376
- state.data.businessCountry = businessCountry;
376
+ if (businessCountry === null || businessCountry === void 0 ? void 0 : businessCountry.iso2)
377
+ state.data.businessCountry = businessCountry;
377
378
  state.data.ipCountry = ipCountry;
378
379
  state.data.locale = locale;
379
380
  state.data.deviceInfo = deviceInfo;
@@ -25,7 +25,7 @@ export var LicenseValidationSchema = yup.object().shape({
25
25
  var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
26
26
  if (!((_a = selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.type) === null || _a === void 0 ? void 0 : _a.length))
27
27
  return false;
28
- if (isFL || !isOtherLicense(selectedEntityLicense))
28
+ if (isFL || (selectedEntityLicense && !isOtherLicense(selectedEntityLicense)))
29
29
  return true;
30
30
  if (length === 0)
31
31
  return this.createError({ message: '' });
@@ -43,7 +43,7 @@ export var LicenseValidationSchema = yup.object().shape({
43
43
  var length = (value === null || value === void 0 ? void 0 : value.length) || 0;
44
44
  if (!((_a = selectedLicense === null || selectedLicense === void 0 ? void 0 : selectedLicense.type) === null || _a === void 0 ? void 0 : _a.length))
45
45
  return false;
46
- if (isCR || !isOtherLicense(selectedEntityLicense))
46
+ if (isCR || (selectedEntityLicense && !isOtherLicense(selectedEntityLicense)))
47
47
  return true;
48
48
  if (length === 0)
49
49
  return this.createError({ message: '' });
@@ -67,11 +67,14 @@ var Individual = function (_a) {
67
67
  });
68
68
  useSetFromDefaultValues(methods, individualData, true);
69
69
  React.useEffect(function () {
70
+ var _a;
70
71
  sendCustomEventToGTM({
71
72
  event: 'Send Event',
72
73
  event_category: 'User Registration Flow',
73
74
  event_action: 'Name and Email Page Viewed'
74
75
  });
76
+ if ((_a = individualData.name) === null || _a === void 0 ? void 0 : _a.length)
77
+ methods.trigger('name');
75
78
  }, []);
76
79
  React.useEffect(function () {
77
80
  if (defaultValues.countryCode.iso2 !== methods.getValues('countryCode.iso2'))
@@ -60,11 +60,14 @@ var CollectIndividualInfo = function (_a) {
60
60
  var readOnly = useFormErrorAndUpdateReadOnly(methods, originalReadOnly);
61
61
  var getFelids = useExcludeReadOnlyFelids(methods, readOnly).getFelids;
62
62
  React.useEffect(function () {
63
+ var _a;
63
64
  sendCustomEventToGTM({
64
65
  event: 'Send Event',
65
66
  event_category: 'User Registration Flow',
66
67
  event_action: 'Name and Email Page Viewed'
67
68
  });
69
+ if ((_a = individualData.name) === null || _a === void 0 ? void 0 : _a.length)
70
+ methods.trigger('name');
68
71
  }, []);
69
72
  React.useEffect(function () {
70
73
  if (countryCode.iso2 !== methods.getValues('countryCode.iso2'))
@@ -192,6 +192,8 @@ var IndividualPersonalInfo = function (_a) {
192
192
  event_action: 'Update Personal Data Page',
193
193
  event_label: settingsData.businessCountry.iso2
194
194
  });
195
+ if (name === null || name === void 0 ? void 0 : name.length)
196
+ methods.trigger('name');
195
197
  }, []);
196
198
  var onBack = function () {
197
199
  if (error)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.15.1-beta",
3
+ "version": "2.15.3-beta",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",