From 414a21a28719b50f61cc41056efc9b599491e048 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Tue, 21 Oct 2025 21:24:46 -0500 Subject: [PATCH] fix(loginform): bug where the reset errror was not properly coming over --- frontend/src/routes/(auth)/-components/LoginForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/routes/(auth)/-components/LoginForm.tsx b/frontend/src/routes/(auth)/-components/LoginForm.tsx index 35384c1..4baeebb 100644 --- a/frontend/src/routes/(auth)/-components/LoginForm.tsx +++ b/frontend/src/routes/(auth)/-components/LoginForm.tsx @@ -52,9 +52,9 @@ export default function LoginForm() { router.history.push(search.redirect ? search.redirect : "/"); } catch (error) { // @ts-ignore - if (error.response.data.success) { + if (!error.response.data.success) { // @ts-ignore - toast.error(error.response.data.message); + toast.error(error?.response?.data.message); } else { // @ts-ignore toast.error(error?.message);