diff --git a/apps/mobile/app/components/auth/login.js b/apps/mobile/app/components/auth/login.js index 99a4a7049..9bcc081cd 100644 --- a/apps/mobile/app/components/auth/login.js +++ b/apps/mobile/app/components/auth/login.js @@ -83,9 +83,6 @@ export const Login = ({ changeMode }) => { <> - {loading ? ( - - ) : null} { errorMessage="Email is invalid" placeholder="Enter your email" defaultValue={email.current} - editable={step === LoginSteps.emailAuth} + editable={step === LoginSteps.emailAuth && !loading} onSubmit={() => { passwordInputRef.current?.focus(); }} @@ -194,6 +191,7 @@ export const Login = ({ changeMode }) => { autoCorrect={false} placeholder="Password" marginBottom={0} + editable={!loading} defaultValue={password.current} onSubmit={() => login()} /> @@ -205,6 +203,7 @@ export const Login = ({ changeMode }) => { paddingHorizontal: 0 }} onPress={() => { + if (loading) return; SheetManager.show("forgotpassword_sheet", email.current); }} textStyle={{ @@ -228,7 +227,10 @@ export const Login = ({ changeMode }) => { borderRadius: 100 }} loading={loading} - onPress={login} + onPress={() => { + if (loading) return; + login(); + }} type="accent" title={ loading @@ -248,6 +250,7 @@ export const Login = ({ changeMode }) => { marginTop: 10 }} onPress={() => { + if (loading) return; setStep(LoginSteps.emailAuth); setLoading(false); }}