From 1ed6a1bc5576de17087a45d89fd2e4117d5bb802 Mon Sep 17 00:00:00 2001 From: Sidney Date: Thu, 14 May 2026 15:23:09 -0300 Subject: [PATCH] Fix: resolve build error caused by syntax glitch in Financeiro.tsx --- portal/src/pages/Financeiro.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/portal/src/pages/Financeiro.tsx b/portal/src/pages/Financeiro.tsx index 45f33cd..1ed48f9 100644 --- a/portal/src/pages/Financeiro.tsx +++ b/portal/src/pages/Financeiro.tsx @@ -179,9 +179,8 @@ export default function Financeiro() { } // If we have a boleto and it is overdue or paid, use current Asaas value - if ((status === 'overdue' || status === 'paid') && (boleto as any).valor) { - return Number((boleto as any).valor); - } + if (boleto && (status === 'overdue' || status === 'paid') && (boleto as any).valor) { + return Number((boleto as any).valor); } // Default: use the discounted base value (net amount)