fix: add currency style and USD to formatCentsToCurrency
This commit is contained in:
1 parent
9edafc88c8
commit
5f7de1167e
1 file changed
+2
@@ -601,6 +601,8 @@ function formatCentsToCurrency(
|
||||
if (Number.isNaN(cents)) return "";
|
||||
const dollars = cents / 100;
|
||||
const formatter = new Intl.NumberFormat(locale, {
|
||||
style: 'currency',
|
||||
currency: 'USD',
|
||||
minimumFractionDigits: 2,
|
||||
maximumFractionDigits: 2,
|
||||
useGrouping: true,
|
||||
|
||||
Reference in new issue
Block a user