Fix: resolve build error caused by syntax glitch in Financeiro.tsx
This commit is contained in:
parent
5bc102dbc9
commit
1ed6a1bc55
|
|
@ -179,10 +179,9 @@ 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) {
|
||||
if (boleto && (status === 'overdue' || status === 'paid') && (boleto as any).valor) {
|
||||
return Number((boleto as any).valor);
|
||||
}
|
||||
}
|
||||
|
||||
// Default: use the discounted base value (net amount)
|
||||
return netAmount;
|
||||
|
|
|
|||
Loading…
Reference in New Issue