From 823fd040222e140e0778a4522221f7ac5fe4c57f Mon Sep 17 00:00:00 2001 From: Dan Janosik Date: Mon, 8 Apr 2019 15:55:44 -0400 Subject: [PATCH] more minor improvements to currency display --- app/utils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/utils.js b/app/utils.js index 5eee2a1..6b2bae6 100644 --- a/app/utils.js +++ b/app/utils.js @@ -149,9 +149,9 @@ function formatCurrencyAmountWithForcedDecimalPlaces(amount, formatType, forcedD var dec = new Decimal(amount); var decimalPlaces = formatInfo.decimalPlaces; - if (decimalPlaces == 0 && dec < 1) { - decimalPlaces = 5; - } + //if (decimalPlaces == 0 && dec < 1) { + // decimalPlaces = 5; + //} if (forcedDecimalPlaces >= 0) { decimalPlaces = forcedDecimalPlaces; @@ -166,7 +166,7 @@ function formatCurrencyAmountWithForcedDecimalPlaces(amount, formatType, forcedD if (global.exchangeRates != null && global.exchangeRates[formatInfo.multiplier] != null) { dec = dec.times(global.exchangeRates[formatInfo.multiplier]); - return formatInfo.symbol + addThousandsSeparators(dec.toDecimalPlaces(decimalPlaces)); + return addThousandsSeparators(dec.toDecimalPlaces(decimalPlaces)) + " " + formatInfo.name; } } }