From a3a620534341e551b079f6b93bf2de4ff9086125 Mon Sep 17 00:00:00 2001 From: Andy Brett Date: Mon, 16 Nov 2020 14:09:24 -0800 Subject: [PATCH] fix #6252 --- .../javascripts/darkswarm/filters/localize_currency.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/darkswarm/filters/localize_currency.js.coffee b/app/assets/javascripts/darkswarm/filters/localize_currency.js.coffee index 37de2759cc..484baf2574 100644 --- a/app/assets/javascripts/darkswarm/filters/localize_currency.js.coffee +++ b/app/assets/javascripts/darkswarm/filters/localize_currency.js.coffee @@ -6,7 +6,7 @@ Darkswarm.filter "localizeCurrency", (currencyConfig)-> # Set decimal points, 2 or 0 if hide_cents. decimals = if currencyConfig.hide_cents == "true" then 0 else 2 # Set format if the currency symbol should come after the number, otherwise (default) use the locale setting. - format = if currencyConfig.symbol_position == "after" then "%n %u" else undefined + format = if currencyConfig.symbol_position == "after" then "%n%u" else undefined # We need to use parseFloat as the amount should come in as a string. amount = parseFloat(amount)