gbc-kyc-kit 1.5.6 → 1.5.8

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.
@@ -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.some((item) => item.value === (geolocation == null ? void 0 : geolocation.country_code))) {
18802
+ if (countryCodeAllowed.length !== 0 && !countryCodeAllowed.some((item) => item === (geolocation == null ? void 0 : geolocation.country_code))) {
18803
18803
  setStatus("COUNTRY_NOT_ALLOWED");
18804
18804
  setMessage("Pa\xEDs no autorizado");
18805
18805
  }
@@ -20320,9 +20320,6 @@ const DocumentReaderController = (dataDocument, clientId, authorize, inProductio
20320
20320
  const geolocation = useGeolocation();
20321
20321
  useEffect(() => {
20322
20322
  if (countryCodeAllowed && geolocation) {
20323
- console.log(countryCodeAllowed, "console 1");
20324
- console.log(countryCodeAllowed.some((item) => console.log(item)), "console 2");
20325
- console.log(geolocation, "console 3");
20326
20323
  if (countryCodeAllowed.length !== 0 && !countryCodeAllowed.some((item) => item === (geolocation == null ? void 0 : geolocation.country_code))) {
20327
20324
  setStatus("COUNTRY_NOT_ALLOWED");
20328
20325
  setMessage("Pa\xEDs no autorizado");
@@ -20606,7 +20603,7 @@ const FaceMatchController = (dataFaceMatch, clientId, authorize, inProduction, p
20606
20603
  }, [webcamRef]);
20607
20604
  useEffect(() => {
20608
20605
  if (countryCodeAllowed && geolocation) {
20609
- if (countryCodeAllowed.length !== 0 && !countryCodeAllowed.some((item) => item.value === (geolocation == null ? void 0 : geolocation.country_code))) {
20606
+ if (countryCodeAllowed.length !== 0 && !countryCodeAllowed.some((item) => item === (geolocation == null ? void 0 : geolocation.country_code))) {
20610
20607
  setStatus("COUNTRY_NOT_ALLOWED");
20611
20608
  setMessage("Pa\xEDs no autorizado");
20612
20609
  }
@@ -24676,7 +24673,7 @@ const LivenessCheckController = (clientId, authorize, inProduction, countryCodeA
24676
24673
  };
24677
24674
  useEffect(() => {
24678
24675
  if (countryCodeAllowed && geolocation) {
24679
- if (countryCodeAllowed.length !== 0 && !countryCodeAllowed.some((item) => item.value === (geolocation == null ? void 0 : geolocation.country_code))) {
24676
+ if (countryCodeAllowed.length !== 0 && !countryCodeAllowed.some((item) => item === (geolocation == null ? void 0 : geolocation.country_code))) {
24680
24677
  setStatus("COUNTRY_NOT_ALLOWED");
24681
24678
  setMessage("Pa\xEDs no autorizado");
24682
24679
  }