Merge pull request #1107 from chaotixkilla/fix-xmr-balance-shifting

Fix XMR balance shifting
This commit is contained in:
Rafael Taranto 2022-02-14 19:05:14 +00:00 committed by GitHub
commit 7c5cc3ff21

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