Fix: Calendar menu negative sign for revenue
Corrects the calendar view to display revenue transactions with positive values, removing the negative sign.
This commit is contained in:
parent
688548893d
commit
eccb0a6cb6
@ -131,7 +131,9 @@ const CalendarioPage = () => {
|
||||
<div className="flex justify-between">
|
||||
<Badge variant="outline">{transaction.categoria}</Badge>
|
||||
<span className={transaction.tipo.toLowerCase() === 'entrada' ? "text-finance-green font-medium" : "text-finance-red font-medium"}>
|
||||
{transaction.tipo.toLowerCase() === 'entrada' ? '' : '-'}{formatCurrency(Math.abs(transaction.valor))}
|
||||
{transaction.tipo.toLowerCase() === 'entrada'
|
||||
? formatCurrency(transaction.valor)
|
||||
: `-${formatCurrency(Math.abs(transaction.valor))}`}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user