From 658202035b92f9fdef6338ecc04e799158e03787 Mon Sep 17 00:00:00 2001 From: Overtorment Date: Fri, 11 Jan 2019 14:29:18 +0000 Subject: [PATCH] FIX: send amount in satoshi wasnt with minus in tx list --- loc/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loc/index.js b/loc/index.js index 82231b2a0..e15566363 100644 --- a/loc/index.js +++ b/loc/index.js @@ -133,7 +133,7 @@ strings.formatBalanceWithoutSuffix = (balance, toUnit, withFormatting = false) = const value = new BigNumber(balance).dividedBy(100000000).toFixed(8); return removeTrailingZeros(value); } else if (toUnit === BitcoinUnit.SATS) { - return withFormatting ? new Intl.NumberFormat().format(balance).replace(/[^0-9]/g, ' ') : balance; + return (balance < 0 ? '-' : '') + (withFormatting ? new Intl.NumberFormat().format(balance).replace(/[^0-9]/g, ' ') : balance); } else if (toUnit === BitcoinUnit.LOCAL_CURRENCY) { return currency.satoshiToLocalCurrency(balance); }