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