mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +01:00
FIX: satoshis display
This commit is contained in:
parent
e78a08cb4a
commit
6acbe842a2
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user