@riocrypto/common 1.0.1304 → 1.0.1306
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.
|
@@ -18,6 +18,10 @@ class RioClient {
|
|
|
18
18
|
this.axios.defaults.baseURL = "https://dev.riotransfer.co";
|
|
19
19
|
this.axios.defaults.withCredentials = true;
|
|
20
20
|
}
|
|
21
|
+
if (process.env.NEXT_PUBLIC_FORCE_SANDBOX === "true") {
|
|
22
|
+
this.axios.defaults.baseURL = "https://sandbox.riotransfer.co";
|
|
23
|
+
this.axios.defaults.withCredentials = true;
|
|
24
|
+
}
|
|
21
25
|
axios.interceptors.request.use((config) => {
|
|
22
26
|
// Exclude specific cookie from being sent
|
|
23
27
|
if (config.headers && config.headers.Cookie) {
|
|
@@ -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
|
|
14
|
+
return "Legal rep identity verification passed";
|
|
15
15
|
case onboarding_status_1.OnboardingStatus.LegalRepresentativeFailed:
|
|
16
|
-
return "Legal
|
|
16
|
+
return "Legal rep identity verification failed";
|
|
17
17
|
case onboarding_status_1.OnboardingStatus.IndividualPassed:
|
|
18
|
-
return "
|
|
18
|
+
return "Identity verification passed";
|
|
19
19
|
case onboarding_status_1.OnboardingStatus.IndividualFailed:
|
|
20
|
-
return "
|
|
20
|
+
return "Identity verification failed";
|
|
21
21
|
case onboarding_status_1.OnboardingStatus.None:
|
|
22
|
-
return "
|
|
22
|
+
return "In progress";
|
|
23
23
|
default:
|
|
24
24
|
return "Processing";
|
|
25
25
|
}
|