fix: add currency style and USD to formatCentsToCurrency
This commit is contained in:
@@ -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