Skip to content

Commit

Permalink
remove wrong condition for ret (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
hichri-louay committed Sep 22, 2023
2 parents e5d1fe4 + c94eb2e commit 1f8fcbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web3/wallets.js
Expand Up @@ -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)

Expand Down

0 comments on commit 1f8fcbf

Please sign in to comment.