Update lib/plugins/wallet/monerod/monerod.js

Co-authored-by: chaotixkilla <chaotixkilla@users.noreply.github.com>
This commit is contained in:
naconner 2022-01-31 09:40:29 -05:00 committed by GitHub
parent 4b604ba698
commit 1c3c3f84ff

View file

@ -92,7 +92,7 @@ function accountBalance (cryptoCode) {
.then(() => refreshWallet())
.then(() => fetch('get_balance', { account_index: 0, address_indices: [0] }))
.then(res => {
return BN(res.unlocked_balance).shiftedBy(unitScale).round()
return BN(res.unlocked_balance).shiftedBy(unitScale).decimalPlaces(0)
})
.catch(err => handleError(err))
}