Fix: resolve build error caused by syntax glitch in Financeiro.tsx
This commit is contained in:
parent
5bc102dbc9
commit
1ed6a1bc55
|
|
@ -179,9 +179,8 @@ export default function Financeiro() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we have a boleto and it is overdue or paid, use current Asaas value
|
// 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);
|
return Number((boleto as any).valor);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default: use the discounted base value (net amount)
|
// Default: use the discounted base value (net amount)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue