aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils.ts')
-rw-r--r--src/lib/utils.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/utils.ts b/src/lib/utils.ts
index dc239739..4bf96d6e 100644
--- a/src/lib/utils.ts
+++ b/src/lib/utils.ts
@@ -332,7 +332,8 @@ export const f = (
maximumFractionDigits = 2,
) => {
const cur = currency || "USD";
- const l = typeof locale === "function" ? (locale as () => string)() : locale || localeMap[cur] || "en-US";
+ const l =
+ typeof locale === "function" ? (locale as () => string)() : locale || localeMap[cur] || "en-US";
const region = l.length >= 2 ? l.slice(-2) : "";
const currencyDisplay = region && cur.startsWith(region) ? "narrowSymbol" : "symbol";
return new Intl.NumberFormat(l, {