diff --git a/web3/wallets.js b/web3/wallets.js index 6a78bfdc..8d8d8d23 100644 --- a/web3/wallets.js +++ b/web3/wallets.js @@ -1067,12 +1067,12 @@ exports.getListCryptoByUid = async (req, res) => { // CryptoPrices => 200 cryptos var CryptoPrices = crypto - const totalBalanceV2 = await this.getAccountV2(req, res) + - req.body.version === 'v1' + var ret = - req.body.version === 'v1' || totalBalanceV2.totalBalance <= 0 + req.body.version === 'v1' ? await this.getAccount(req, res) : await this.getAccountV2(req, res)