@riocrypto/common 1.0.1303 → 1.0.1305

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.
@@ -13,9 +13,6 @@ const getHighestOnboardingStatus = (user) => {
13
13
  let statusCountry = undefined;
14
14
  if (user.onboarding) {
15
15
  for (const country of Object.keys(user.onboarding)) {
16
- if (country === "undefined") {
17
- continue;
18
- }
19
16
  if ((_a = user.onboarding[country]) === null || _a === void 0 ? void 0 : _a.status) {
20
17
  if (!status ||
21
18
  onboardingStatusOrder.indexOf(user.onboarding[country].status) > onboardingStatusOrder.indexOf(status)) {
@@ -11,15 +11,15 @@ const humanizeOnboardingStatus = (status) => {
11
11
  case onboarding_status_1.OnboardingStatus.Approved:
12
12
  return "Approved";
13
13
  case onboarding_status_1.OnboardingStatus.LegalRepresentativePassed:
14
- return "Legal Representative Passed";
14
+ return "Legal rep identity verification passed";
15
15
  case onboarding_status_1.OnboardingStatus.LegalRepresentativeFailed:
16
- return "Legal Representative Failed";
16
+ return "Legal rep identity verification failed";
17
17
  case onboarding_status_1.OnboardingStatus.IndividualPassed:
18
- return "Individual Passed";
18
+ return "Identity verification passed";
19
19
  case onboarding_status_1.OnboardingStatus.IndividualFailed:
20
- return "Individual Failed";
20
+ return "Identity verification failed";
21
21
  case onboarding_status_1.OnboardingStatus.None:
22
- return "None";
22
+ return "In progress";
23
23
  default:
24
24
  return "Processing";
25
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1303",
3
+ "version": "1.0.1305",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",