From 21fcb579693b10ed9f7d5ad11b98c808f714f464 Mon Sep 17 00:00:00 2001 From: xenticore Date: Wed, 16 Apr 2025 20:57:28 -0400 Subject: [PATCH] fix: keep spacing in currency formatting --- src/content/uiRenderer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/uiRenderer.ts b/src/content/uiRenderer.ts index 6c3f722..f555759 100644 --- a/src/content/uiRenderer.ts +++ b/src/content/uiRenderer.ts @@ -35,7 +35,7 @@ export function createPriceRow(qualityName: string, data: ItemPriceData, keyPric try { const realPrice = convertUSD(realPriceUSD, currency, rates) const currencyFormatter = new Intl.NumberFormat(locale, { style: "currency", currency: currency }) - realPriceString = currencyFormatter.format(realPrice).replace(/\s+/g, '') + realPriceString = currencyFormatter.format(realPrice) } catch (e) { logError(`Failed to convert USD ${realPriceUSD} to ${currency}`, e) }