FIX: satoshis display

This commit is contained in:
Overtorment 2018-12-24 23:22:53 +00:00
parent e78a08cb4a
commit 6acbe842a2

View File

@ -88,8 +88,8 @@ strings.formatBalance = (balance, toUnit) => {
if (toUnit === BitcoinUnit.BTC) {
return balance + ' ' + BitcoinUnit.BTC;
} else if (toUnit === BitcoinUnit.SATS) {
const value = new BigNumber(balance).multipliedBy(0.001);
return parseInt(value.toString().replace('.', '')).toString() + ' ' + BitcoinUnit.SATS;
const value = new BigNumber(balance).multipliedBy(100000000);
return value.toString() + ' ' + BitcoinUnit.SATS;
} else if (toUnit === BitcoinUnit.LOCAL_CURRENCY) {
return currency.BTCToLocalCurrency(balance);
}