diff --git a/packages/mobile/src/screens/signon/SignOn.tsx b/packages/mobile/src/screens/signon/SignOn.tsx index d5be5fb9e91..44bdadee817 100644 --- a/packages/mobile/src/screens/signon/SignOn.tsx +++ b/packages/mobile/src/screens/signon/SignOn.tsx @@ -264,7 +264,6 @@ const messages = { const errorMessages = { invalidEmail: 'Please enter a valid email', - emailInUse: 'Email is already in use, please sign-in', emptyPassword: 'Please enter a password', default: 'Invalid Credentials' } @@ -333,7 +332,6 @@ const SignOn = ({ navigation }: SignOnProps) => { const signedIn = signOnStatus === 'success' const isSigninError = passwordField.error - const emailIsAvailable = emailField.error !== 'inUse' const emailIsValid = emailField.error !== 'characters' const topDrawer = useRef(new Animated.Value(-800)).current @@ -404,7 +402,6 @@ const SignOn = ({ navigation }: SignOnProps) => { useEffect(() => { if ( (isSignin && isSigninError && showDefaultError) || - (!isSignin && !emailIsAvailable && email !== '') || showInvalidEmailError || showEmptyPasswordError ) { @@ -421,7 +418,6 @@ const SignOn = ({ navigation }: SignOnProps) => { isSignin, isSigninError, showDefaultError, - emailIsAvailable, email, showInvalidEmailError, showEmptyPasswordError @@ -464,26 +460,6 @@ const SignOn = ({ navigation }: SignOnProps) => { ) } - if (!isSignin && !emailIsAvailable && email !== '') { - return ( - - - - - {errorMessages.emailInUse} - - - - - ) - } if (showInvalidEmailError) { return ( void onEmailChange: (email: string) => void @@ -103,7 +102,7 @@ export const EmailPage = ({ const inputError = email.status === 'failure' const validInput = email.status === 'success' const shouldDisableInputs = isSubmitting && email.status === 'loading' - const showError = inputError && showValidation && email.error !== 'inUse' + const showError = inputError && showValidation return (