@tap-payments/auth-jsconnect 2.6.55-test → 2.6.56-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.
@@ -674,8 +674,8 @@ export var updateIndividualInfo = createAsyncThunk('updateIndividualInfo', funct
674
674
  isInfluencerNonEditable = hasNoneEditableValue(user === null || user === void 0 ? void 0 : user.data_status, 'is_influencer');
675
675
  isMonthlyIncomeNonEditable = hasNoneEditableValue(user === null || user === void 0 ? void 0 : user.data_status, 'monthly_income');
676
676
  isSharesAvailable = shareCount || shareValue;
677
- pepInfo = isPEPNonEditable ? undefined : isPEP;
678
- influencerInfo = isInfluencerNonEditable ? undefined : isInfluencer;
677
+ pepInfo = isPEPNonEditable || isPEP === null ? undefined : isPEP;
678
+ influencerInfo = isInfluencerNonEditable || isInfluencer === null ? undefined : isInfluencer;
679
679
  occupationInfo = isOccupationNonEditable || !(occupation === null || occupation === void 0 ? void 0 : occupation.id) ? undefined : { chapter: { id: occupation.id } };
680
680
  sourceIncomeInfo = isSourceIncomeNonEditable || !(sourceIncome === null || sourceIncome === void 0 ? void 0 : sourceIncome.id) ? undefined : [{ id: sourceIncome.id }];
681
681
  monthlyIncomeInfo = isMonthlyIncomeNonEditable || !(monthlyIncome === null || monthlyIncome === void 0 ? void 0 : monthlyIncome.id) ? undefined : { id: monthlyIncome.id };
@@ -51,7 +51,7 @@ export var hasVerifiedValue = function (obj, path) {
51
51
  return hasKeyValue(obj, path, value);
52
52
  };
53
53
  export function deepCopy(obj) {
54
- if (typeof obj !== 'object') {
54
+ if (typeof obj !== 'object' || obj === null) {
55
55
  return obj;
56
56
  }
57
57
  if (Array.isArray(obj)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.6.55-test",
3
+ "version": "2.6.56-test",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",