diff --git a/.changeset/unlucky-coins-juggle.md b/.changeset/unlucky-coins-juggle.md new file mode 100644 index 0000000000..0609d4724d --- /dev/null +++ b/.changeset/unlucky-coins-juggle.md @@ -0,0 +1,5 @@ +--- +"@clerk/clerk-js": patch +--- + +Fix for legal consent rendered on the component when only social sign up is enabled diff --git a/packages/clerk-js/src/ui/components/SignUp/SignUpStart.tsx b/packages/clerk-js/src/ui/components/SignUp/SignUpStart.tsx index 1d748d56c7..96c15e955d 100644 --- a/packages/clerk-js/src/ui/components/SignUp/SignUpStart.tsx +++ b/packages/clerk-js/src/ui/components/SignUp/SignUpStart.tsx @@ -103,6 +103,7 @@ function _SignUpStart(): JSX.Element { const hasTicket = !!formState.ticket.value; const hasEmail = !!formState.emailAddress.value; const isProgressiveSignUp = userSettings.signUp.progressive; + const isLegalConsentEnabled = userSettings.signUp.legal_consent_enabled; const fields = determineActiveFields({ attributes, @@ -110,7 +111,7 @@ function _SignUpStart(): JSX.Element { hasEmail, activeCommIdentifierType, isProgressiveSignUp, - legalConsentRequired: userSettings.signUp.legal_consent_enabled, + legalConsentRequired: isLegalConsentEnabled, }); const handleTokenFlow = () => { @@ -293,7 +294,7 @@ function _SignUpStart(): JSX.Element { /> )} - {!shouldShowForm && ( + {!shouldShowForm && isLegalConsentEnabled && (