@adyen/kyc-components 2.45.1 → 2.45.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.
|
@@ -27256,6 +27256,12 @@ const useIsEligibleForSingpass = ({
|
|
|
27256
27256
|
const {
|
|
27257
27257
|
isExperimentEnabled
|
|
27258
27258
|
} = useExperimentsContext();
|
|
27259
|
+
if (!legalEntity) {
|
|
27260
|
+
return false;
|
|
27261
|
+
}
|
|
27262
|
+
if (getLegalEntityCountry(legalEntity) !== CountryCodes.Singapore) {
|
|
27263
|
+
return false;
|
|
27264
|
+
}
|
|
27259
27265
|
if (!isExperimentEnabled("ShowSingPassButtonForCompanies")) return false;
|
|
27260
27266
|
const isSingpassEnabled = Boolean(handleOpenSingpassAuthorizationLink) && getLegalEntityCountry(legalEntity) === CountryCodes.Singapore;
|
|
27261
27267
|
if (!isSingpassEnabled) return false;
|
|
@@ -35712,7 +35718,7 @@ const ConfigurationApiProvider = ({
|
|
|
35712
35718
|
isEmbeddedDropin,
|
|
35713
35719
|
loadingContext
|
|
35714
35720
|
} = authContext;
|
|
35715
|
-
const sdkVersion = "2.45.
|
|
35721
|
+
const sdkVersion = "2.45.2";
|
|
35716
35722
|
useAnalytics({
|
|
35717
35723
|
onUserEvent,
|
|
35718
35724
|
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
|
}
|