Skip to content

Commit

Permalink
fix(currency): symbol fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
kspeyanski committed Dec 21, 2023
1 parent 64db9ef commit 8e354e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cldr/currency.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export function currencyDisplay(locale, options) {
let result;

if (currencyDisplay === SYMBOL) {
result = currencyInfo["symbol-alt-narrow"] || currencyInfo[SYMBOL];
result = currencyInfo["symbol-alt-narrow"] || currencyInfo[SYMBOL] || currency;
} else {
if (typeof value === "undefined" || value !== 1) {
result = currencyInfo["displayName-count-other"];
Expand Down

0 comments on commit 8e354e4

Please sign in to comment.