FIX: send amount in satoshi wasnt with minus in tx list

This commit is contained in:
Overtorment 2019-01-11 14:29:18 +00:00
parent 9fa273cc4b
commit 658202035b

View File

@ -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);
}