Skip to content

Commit

Permalink
feat: use usd currency name instead of dollar sign
Browse files Browse the repository at this point in the history
  • Loading branch information
peronczyk committed Oct 25, 2024
1 parent 26983c0 commit e1fde63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/composables/currencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export function useCurrencies({
function formatCurrency(value: number): string {
return new Intl.NumberFormat(
DEFAULT_LOCALE,
{ style: 'currency', currencyDisplay: 'narrowSymbol', currency: currentCurrencyCode.value },
{ style: 'currency', currencyDisplay: 'code', currency: currentCurrencyCode.value },
).format(value);
}

Expand Down

0 comments on commit e1fde63

Please sign in to comment.