diff --git a/src/services/transacao/summaryService.ts b/src/services/transacao/summaryService.ts index 6a55f09..5fa25f5 100644 --- a/src/services/transacao/summaryService.ts +++ b/src/services/transacao/summaryService.ts @@ -1,4 +1,3 @@ - import { supabase } from "@/integrations/supabase/client"; import { CategorySummary, MonthlyData, ResumoFinanceiro } from "@/types/financialTypes"; import { getUserEmail, getUserGroups } from "./baseService"; @@ -199,8 +198,9 @@ export async function getCategorySummary(tipo: string = 'despesa'): Promise valor > 0) // Filter out categories with 0 value .map(([categoria, valor], index) => ({ categoria, valor, @@ -209,7 +209,7 @@ export async function getCategorySummary(tipo: string = 'despesa'): Promise b.valor - a.valor); - console.log(`📋 [getCategorySummary] Resultado final:`, categoryArray); + console.log(`📋 [getCategorySummary] Resultado final (filtrado):`, categoryArray); return categoryArray; } catch (error) { console.error('💥 [getCategorySummary] Erro geral:', error);