From c834648d395e58a6fb62c620a0c5e2ee4d1b8a4f Mon Sep 17 00:00:00 2001 From: Felipe Coutinho Date: Mon, 1 Dec 2025 00:16:50 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20corrige=20condi=C3=A7=C3=A3o=20de=20an?= =?UTF-8?q?=C3=A1lise=20de=20gastos=20parcelados?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ajusta a condição de filtragem para transações parceladas, mudando "parcelado" para "Parcelado" para garantir a correspondência correta com os dados. --- app/(dashboard)/insights/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/(dashboard)/insights/actions.ts b/app/(dashboard)/insights/actions.ts index 8aa2362..1bb2b46 100644 --- a/app/(dashboard)/insights/actions.ts +++ b/app/(dashboard)/insights/actions.ts @@ -384,7 +384,7 @@ async function aggregateMonthData(userId: string, period: string) { // Análise de gastos parcelados const installmentTransactions = last3MonthsTransactions.filter( - tx => tx.condition === "parcelado" && tx.installmentCount && tx.installmentCount > 1 + tx => tx.condition === "Parcelado" && tx.installmentCount && tx.installmentCount > 1 ); const installmentData = installmentTransactions