diff options
| author | Adam Soltys <[email protected]> | 2026-02-26 14:11:24 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-26 14:11:24 -0800 |
| commit | 6e0cb4603200e494228e788c43793bc3ee4956ca (patch) | |
| tree | 57ab81f6f6161829e1361dea298a40be9b76eb73 /src/lib/utils.ts | |
| parent | 36079a4309b5628c7a253264aed1da41b149841b (diff) | |
| download | coinos-ui-6e0cb4603200e494228e788c43793bc3ee4956ca.tar.gz coinos-ui-6e0cb4603200e494228e788c43793bc3ee4956ca.zip | |
lint remotely
Diffstat (limited to 'src/lib/utils.ts')
| -rw-r--r-- | src/lib/utils.ts | 3 |
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, { |
