fix: add currency style and USD to formatCentsToCurrency

This commit is contained in:
2026-01-22 19:53:53 -05:00
parent 9edafc88c8
commit 5f7de1167e

View File

@@ -601,6 +601,8 @@ function formatCentsToCurrency(
if (Number.isNaN(cents)) return ""; if (Number.isNaN(cents)) return "";
const dollars = cents / 100; const dollars = cents / 100;
const formatter = new Intl.NumberFormat(locale, { const formatter = new Intl.NumberFormat(locale, {
style: 'currency',
currency: 'USD',
minimumFractionDigits: 2, minimumFractionDigits: 2,
maximumFractionDigits: 2, maximumFractionDigits: 2,
useGrouping: true, useGrouping: true,