From de3d99a3b1a398ae01eec0f65f03309648cbe24d Mon Sep 17 00:00:00 2001 From: Dionizio Ferreira Date: Sat, 6 Dec 2025 07:35:25 -0300 Subject: [PATCH 1/3] fix: add error handling for internal server error in login form --- components/auth/login-form.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/auth/login-form.tsx b/components/auth/login-form.tsx index a84dc7f..0f24d14 100644 --- a/components/auth/login-form.tsx +++ b/components/auth/login-form.tsx @@ -55,6 +55,11 @@ export function LoginForm({ className, ...props }: DivProps) { router.replace("/dashboard"); }, onError: (ctx) => { + if (ctx.error.status === 500 && ctx.error.statusText === "Internal Server Error") { + toast.error("Ocorreu uma falha na requisição. Tente novamente mais tarde."); + } + + setError(ctx.error.message); setLoadingEmail(false); }, From 84d7115a77ef2fdaadca8b112bd05960d7524db6 Mon Sep 17 00:00:00 2001 From: Dionizio Ferreira Date: Sat, 6 Dec 2025 07:35:42 -0300 Subject: [PATCH 2/3] =?UTF-8?q?Corre=C3=A7=C3=A3o=20de=20warn=20de=20types?= =?UTF-8?q?cript?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/contas/accounts-page.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/contas/accounts-page.tsx b/components/contas/accounts-page.tsx index bf03fef..de5e00e 100644 --- a/components/contas/accounts-page.tsx +++ b/components/contas/accounts-page.tsx @@ -194,7 +194,11 @@ export function AccountsPage({ accounts, logoOptions }: AccountsPageProps) { {transferFromAccount && ( ({ + ...a, + balance: a.balance ?? a.initialBalance ?? 0, + excludeFromBalance: a.excludeFromBalance ?? false, + }))} fromAccountId={transferFromAccount.id} currentPeriod={getCurrentPeriod()} open={transferOpen} From 57bbcd43245d2330a0e7292c313c5a5e778ba490 Mon Sep 17 00:00:00 2001 From: Dionizio Alves Ferreira Date: Sat, 6 Dec 2025 11:32:24 -0300 Subject: [PATCH 3/3] Update components/auth/login-form.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- components/auth/login-form.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/components/auth/login-form.tsx b/components/auth/login-form.tsx index 0f24d14..e487e5e 100644 --- a/components/auth/login-form.tsx +++ b/components/auth/login-form.tsx @@ -59,7 +59,6 @@ export function LoginForm({ className, ...props }: DivProps) { toast.error("Ocorreu uma falha na requisição. Tente novamente mais tarde."); } - setError(ctx.error.message); setLoadingEmail(false); },