fix: XMR balance shifting

This commit is contained in:
Sérgio Salgado 2022-02-14 16:42:39 +00:00
parent 45173e7c0e
commit 99c37a0f24

View file

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