You've already forked tf2wikipricing
fix: keep spacing in currency formatting
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user