astra-sdk-web 1.1.22 → 1.1.23
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.
- package/dist/astra-sdk.cjs.js +2 -2
- package/dist/astra-sdk.cjs.js.map +1 -1
- package/dist/astra-sdk.es.js +2 -2
- package/dist/astra-sdk.es.js.map +1 -1
- package/dist/components.cjs.js +2 -2
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.es.js +2 -2
- package/dist/components.es.js.map +1 -1
- package/package.json +1 -1
- package/src/pages/QRCodePage.tsx +2 -2
package/dist/astra-sdk.es.js
CHANGED
|
@@ -1976,8 +1976,8 @@ function QRCodePage({ onClose, mobileBaseUrl = "https://kyc-sdk-stage.astraproto
|
|
|
1976
1976
|
const svc = new KycApiService({ apiBaseUrl, sessionId, serverKey });
|
|
1977
1977
|
const payload = await svc.getResult();
|
|
1978
1978
|
const first = Array.isArray(payload?.data) && payload.data.length > 0 ? payload.data[0] : null;
|
|
1979
|
-
if (first && first.kyc_status === "verified" && first.
|
|
1980
|
-
window.location.href = first.
|
|
1979
|
+
if (first && first.kyc_status === "verified" && first.redirect_url) {
|
|
1980
|
+
window.location.href = first.redirect_url;
|
|
1981
1981
|
return;
|
|
1982
1982
|
}
|
|
1983
1983
|
alert("Please complete your KYC first.");
|