Skip to content

Commit

Permalink
Merge pull request #19 from dave-ok/ft-update-currency-symbols
Browse files Browse the repository at this point in the history
feat: 🎸 update currency symbols
  • Loading branch information
bobetbat authored Nov 8, 2022
2 parents d2afac4 + 30ea998 commit 776bdfa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/currencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,11 @@ export const dups: Duplicates = Object.entries(currencySymbols).reduce((result,

export const currencySymbolMap: Record<string, string> = Object.entries(currencySymbols).reduce(
(result, [key, symbol]) => {
if (['GBP', 'USD'].includes(key)) {
// special case for GBP - no prefix
if (['GBP', 'USD', 'EUR'].includes(key)) {
// special case for GBP, USD, EUR
result[key] = symbol;
} else if (dups[symbol] > 1) {
result[key] = key.slice(0, 2) + symbol;
// } else if (dups[symbol] > 1) {
// result[key] = key.slice(0, 2) + symbol;
} else {
result[key] = symbol;
}
Expand Down

0 comments on commit 776bdfa

Please sign in to comment.