chore: lint

This commit is contained in:
amhsirak
2025-07-12 01:36:11 +05:30
parent 640693aeef
commit a56bef3f62

View File

@@ -43,10 +43,10 @@ const Login = () => {
const submitForm = async (e: any) => {
e.preventDefault();
if (!email.includes("@")) {
notify("error", "Please enter a valid email.");
return;
}
if (!email.includes("@")) {
notify("error", "Please enter a valid email.");
return;
}
setLoading(true);
try {
@@ -61,11 +61,11 @@ if (!email.includes("@")) {
navigate("/");
} catch (err: any) {
const errorResponse = err.response?.data;
const errorMessage = errorResponse?.code
? t(errorResponse.code)
: t('login.error.generic');
const errorMessage = errorResponse?.code
? t(errorResponse.code)
: t('login.error.generic');
notify("error", errorMessage);
setLoading(false);
}