Fix: Calendar revenue sign

Corrects the display of revenue transactions in the calendar view to remove the negative sign.
This commit is contained in:
gpt-engineer-app[bot] 2025-05-18 02:32:30 +00:00
parent 0a14aec425
commit 688548893d

View File

@ -131,7 +131,7 @@ 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(Math.abs(transaction.valor))}
</span>
</div>
</div>