From 351be1b52d36a49d1eececca2160045cd47c788e Mon Sep 17 00:00:00 2001 From: LauraPinilla Date: Thu, 7 Nov 2024 13:00:42 -0600 Subject: [PATCH] solving issue reported on ACS-32025 --- .../components/social-sign-on/_children/AppleSignIn.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/identity-block/components/social-sign-on/_children/AppleSignIn.jsx b/blocks/identity-block/components/social-sign-on/_children/AppleSignIn.jsx index 7e5742aad..90f3cbd6f 100644 --- a/blocks/identity-block/components/social-sign-on/_children/AppleSignIn.jsx +++ b/blocks/identity-block/components/social-sign-on/_children/AppleSignIn.jsx @@ -9,7 +9,7 @@ function AppleSignIn({ customButtons, socialSignOnIn, className, oidcClients = [ const phrases = usePhrases(); const { Identity } = useIdentity(); - const appleOIDCClient = oidcClients.find((oidcClient) => { + const appleOIDCClient = oidcClients && oidcClients.find((oidcClient) => { const parsedClientId = oidcClient.clientId.split(';')[0]; return oidcClient.protocol === 'Apple' && parsedClientId === appleClientId;