gbc-kyc-kit 1.5.2 → 1.5.3
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/gbc-kyc-kit.es.js +4 -4
- package/dist/gbc-kyc-kit.umd.js +26 -26
- package/package.json +1 -1
package/dist/gbc-kyc-kit.es.js
CHANGED
|
@@ -18799,7 +18799,7 @@ const BlackListController = (clientId, authorize, inProduction, countryCodeAllow
|
|
|
18799
18799
|
const geolocation = useGeolocation();
|
|
18800
18800
|
useEffect(() => {
|
|
18801
18801
|
if (countryCodeAllowed && geolocation) {
|
|
18802
|
-
if (countryCodeAllowed.length !== 0 && !countryCodeAllowed.
|
|
18802
|
+
if (countryCodeAllowed.length !== 0 && !countryCodeAllowed.some((item) => item.value === (geolocation == null ? void 0 : geolocation.country_code))) {
|
|
18803
18803
|
setStatus("COUNTRY_NOT_ALLOWED");
|
|
18804
18804
|
setMessage("Pa\xEDs no autorizado");
|
|
18805
18805
|
}
|
|
@@ -20321,7 +20321,7 @@ const DocumentReaderController = (dataDocument, clientId, authorize, inProductio
|
|
|
20321
20321
|
const geolocation = useGeolocation();
|
|
20322
20322
|
useEffect(() => {
|
|
20323
20323
|
if (countryCodeAllowed && geolocation) {
|
|
20324
|
-
if (countryCodeAllowed.length !== 0 && !countryCodeAllowed.
|
|
20324
|
+
if (countryCodeAllowed.length !== 0 && !countryCodeAllowed.some((item) => item.value === (geolocation == null ? void 0 : geolocation.country_code))) {
|
|
20325
20325
|
setStatus("COUNTRY_NOT_ALLOWED");
|
|
20326
20326
|
setMessage("Pa\xEDs no autorizado");
|
|
20327
20327
|
}
|
|
@@ -20604,7 +20604,7 @@ const FaceMatchController = (dataFaceMatch, clientId, authorize, inProduction, p
|
|
|
20604
20604
|
}, [webcamRef]);
|
|
20605
20605
|
useEffect(() => {
|
|
20606
20606
|
if (countryCodeAllowed && geolocation) {
|
|
20607
|
-
if (countryCodeAllowed.length !== 0 && !countryCodeAllowed.
|
|
20607
|
+
if (countryCodeAllowed.length !== 0 && !countryCodeAllowed.some((item) => item.value === (geolocation == null ? void 0 : geolocation.country_code))) {
|
|
20608
20608
|
setStatus("COUNTRY_NOT_ALLOWED");
|
|
20609
20609
|
setMessage("Pa\xEDs no autorizado");
|
|
20610
20610
|
}
|
|
@@ -24674,7 +24674,7 @@ const LivenessCheckController = (clientId, authorize, inProduction, countryCodeA
|
|
|
24674
24674
|
};
|
|
24675
24675
|
useEffect(() => {
|
|
24676
24676
|
if (countryCodeAllowed && geolocation) {
|
|
24677
|
-
if (countryCodeAllowed.length !== 0 && !countryCodeAllowed.
|
|
24677
|
+
if (countryCodeAllowed.length !== 0 && !countryCodeAllowed.some((item) => item.value === (geolocation == null ? void 0 : geolocation.country_code))) {
|
|
24678
24678
|
setStatus("COUNTRY_NOT_ALLOWED");
|
|
24679
24679
|
setMessage("Pa\xEDs no autorizado");
|
|
24680
24680
|
}
|