Skip to content

Commit 54967e5

Browse files
committed
refactor: improve display for credit balance
1 parent 7f7d2a7 commit 54967e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/client/components/billing/CreditBalanceCard.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ export const CreditBalanceCard: React.FC<CreditBalanceCardProps> = React.memo(
4949
{t('Loading...')}
5050
</div>
5151
) : (
52-
<div className="text-2xl font-semibold">{data?.credit ?? 0}</div>
52+
<div className="text-2xl font-semibold">
53+
{Number(data?.credit ?? 0).toLocaleString()}
54+
</div>
5355
)}
5456
</CardContent>
5557
</Card>

0 commit comments

Comments
 (0)