Fix plus sign showing before negative rendimientos values

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Carlos Escalante
2026-04-01 10:24:58 -06:00
parent cab4d86b5c
commit aedf3aa3b0

View File

@@ -607,7 +607,7 @@ export default function Pensions() {
</p> </p>
)} )}
<p className="text-lg font-bold font-mono" style={{ color: fund.color }}> <p className="text-lg font-bold font-mono" style={{ color: fund.color }}>
+{formatCRC(earned)} {earned >= 0 ? '+' : ''}{formatCRC(earned)}
</p> </p>
<p className="text-xs text-muted-foreground">en rendimientos</p> <p className="text-xs text-muted-foreground">en rendimientos</p>
</CardContent> </CardContent>