diff --git a/src/pages/Login.tsx b/src/pages/Login.tsx index b76f1fd8..91df171b 100644 --- a/src/pages/Login.tsx +++ b/src/pages/Login.tsx @@ -42,6 +42,12 @@ const Login = () => { const submitForm = async (e: any) => { e.preventDefault(); + +if (!email.includes("@")) { + notify("error", "Please enter a valid email."); + return; +} + setLoading(true); try { const { data } = await axios.post(