@adyen/kyc-components 3.19.1 → 3.19.2
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.
|
@@ -27537,6 +27537,9 @@ const useIsEligibleForSingpass = ({
|
|
|
27537
27537
|
const {
|
|
27538
27538
|
isExperimentEnabled
|
|
27539
27539
|
} = useExperimentsContext();
|
|
27540
|
+
if (!legalEntity) {
|
|
27541
|
+
return false;
|
|
27542
|
+
}
|
|
27540
27543
|
if (getLegalEntityCountry(legalEntity) !== CountryCodes.Singapore) {
|
|
27541
27544
|
return false;
|
|
27542
27545
|
}
|
|
@@ -36710,7 +36713,7 @@ const ConfigurationApiProvider = ({
|
|
|
36710
36713
|
isEmbeddedDropin,
|
|
36711
36714
|
loadingContext
|
|
36712
36715
|
} = authContext;
|
|
36713
|
-
const sdkVersion = "3.19.
|
|
36716
|
+
const sdkVersion = "3.19.2";
|
|
36714
36717
|
useAnalytics({
|
|
36715
36718
|
onUserEvent,
|
|
36716
36719
|
legalEntityId: rootLegalEntityId,
|
|
@@ -2,7 +2,7 @@ import type { SingpassLinkResponse } from '../../../components/Dropins/types';
|
|
|
2
2
|
import type { AccountHolderOption } from '../../../components/internal/AccountHolder/types';
|
|
3
3
|
import type { ExistingLegalEntity } from '../../models/api/legal-entity';
|
|
4
4
|
interface UseIsEligibleForSingpassProps {
|
|
5
|
-
legalEntity
|
|
5
|
+
legalEntity?: ExistingLegalEntity;
|
|
6
6
|
accountHolder: AccountHolderOption | null;
|
|
7
7
|
handleOpenSingpassAuthorizationLink: (() => Promise<SingpassLinkResponse>) | undefined;
|
|
8
8
|
}
|