From 3cc9ca31c8a9ec9b29d945c82d3eeda6fdc31ff7 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 6 Jun 2025 18:44:28 +0000 Subject: [PATCH] Fix: Bug when creating new expense The AI will investigate and fix a bug that occurs when the "Nova Despesa" button is pressed in production. --- src/components/dashboard/TransactionForm.tsx | 2 +- .../transacoes/TransactionDialogs.tsx | 12 ++++- src/hooks/useTransactionForm.ts | 49 ++++++++++--------- 3 files changed, 38 insertions(+), 25 deletions(-) diff --git a/src/components/dashboard/TransactionForm.tsx b/src/components/dashboard/TransactionForm.tsx index eb77e9a..1b16252 100644 --- a/src/components/dashboard/TransactionForm.tsx +++ b/src/components/dashboard/TransactionForm.tsx @@ -43,7 +43,7 @@ export function TransactionForm({ // Fetch user groups when the form loads useEffect(() => { fetchGrupos(); - }, []); + }, [fetchGrupos]); return (