diff --git a/frontend/src/routes/(auth)/-components/LoginForm.tsx b/frontend/src/routes/(auth)/-components/LoginForm.tsx index 9475dd5..35384c1 100644 --- a/frontend/src/routes/(auth)/-components/LoginForm.tsx +++ b/frontend/src/routes/(auth)/-components/LoginForm.tsx @@ -52,7 +52,7 @@ export default function LoginForm() { router.history.push(search.redirect ? search.redirect : "/"); } catch (error) { // @ts-ignore - if (!error.response.success) { + if (error.response.data.success) { // @ts-ignore toast.error(error.response.data.message); } else {