Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: show errors under the email input

Ammar Ahmed724ad58824fe
diff --git a/apps/mobile/app/components/auth/forgot-password.tsx b/apps/mobile/app/components/auth/forgot-password.tsx
index b1f8f6aad..47d3836aa 100644
--- a/apps/mobile/app/components/auth/forgot-password.tsx
+++ b/apps/mobile/app/components/auth/forgot-password.tsx
@@ -76,12 +76,7 @@ export const ForgotPassword = ({ userEmail }: { userEmail: string }) => {
setSent(true);
} catch (e) {
setLoading(false);
- ToastManager.show({
- heading: strings.recoveryEmailFailed(),
- message: (e as Error).message,
- type: "error",
- context: "local"
- });
+ formRef.current.setError("email", (e as Error).message);
}
};