diff --git a/portal/src/pages/Financeiro.tsx b/portal/src/pages/Financeiro.tsx index fd0b926..45f33cd 100644 --- a/portal/src/pages/Financeiro.tsx +++ b/portal/src/pages/Financeiro.tsx @@ -179,10 +179,8 @@ export default function Financeiro() { } // If we have a boleto and it is overdue or paid, use current Asaas value - if (boleto && (boleto as any).valor) { - const bValue = Number((boleto as any).valor); - if (status === 'overdue' || status === 'paid') { - return bValue; + if ((status === 'overdue' || status === 'paid') && (boleto as any).valor) { + return Number((boleto as any).valor); } } @@ -346,13 +344,13 @@ export default function Financeiro() { fontWeight: 600, color: normalizeStatus(payment) === 'overdue' ? 'var(--color-danger)' : 'var(--color-primary-light)' }}> -
+
{formatCurrency(getEffectiveValue(payment))} {normalizeStatus(payment) === 'paid' && ( - - PAGO + + • Pago )}