diff --git a/packages/console/src/pages/SignInExperience/tabs/SignUpAndSignInTab/SignUpForm.tsx b/packages/console/src/pages/SignInExperience/tabs/SignUpAndSignInTab/SignUpForm.tsx index 9bedd03c9..3beeb253a 100644 --- a/packages/console/src/pages/SignInExperience/tabs/SignUpAndSignInTab/SignUpForm.tsx +++ b/packages/console/src/pages/SignInExperience/tabs/SignUpAndSignInTab/SignUpForm.tsx @@ -76,11 +76,9 @@ const SignUpForm = () => { /> )} /> - {signUpIdentifier !== SignUpIdentifier.None && ( - - )} + {signUpIdentifier !== SignUpIdentifier.None && ( { return null; } - const missingConnectors = ( - requiredConnectors.length === 0 ? [ConnectorType.Social] : requiredConnectors - ).filter( + const missingConnectors = requiredConnectors.filter( (connectorType) => !connectors.some(({ type, enabled }) => type === connectorType && enabled) ); diff --git a/packages/console/src/pages/SignInExperience/tabs/SignUpAndSignInTab/components/SignInMethodEditBox/index.tsx b/packages/console/src/pages/SignInExperience/tabs/SignUpAndSignInTab/components/SignInMethodEditBox/index.tsx index 0ed8c312b..f6f621d85 100644 --- a/packages/console/src/pages/SignInExperience/tabs/SignUpAndSignInTab/components/SignInMethodEditBox/index.tsx +++ b/packages/console/src/pages/SignInExperience/tabs/SignUpAndSignInTab/components/SignInMethodEditBox/index.tsx @@ -124,19 +124,14 @@ const SignInMethodEditBox = ({ ))} - {requiredSignInIdentifiers.length > 0 && ( - ( - (connectors, signInIdentifier) => { - return [ - ...connectors, - ...signInIdentifierToRequiredConnectorMapping[signInIdentifier], - ]; - }, - [] - )} - /> - )} + ( + (connectors, { identifier: signInIdentifier }) => { + return [...connectors, ...signInIdentifierToRequiredConnectorMapping[signInIdentifier]]; + }, + [] + )} + /> );