Skip to content

Commit

Permalink
remove wrong condition for ret
Browse files Browse the repository at this point in the history
  • Loading branch information
hichri-louay committed Sep 22, 2023
1 parent e5d1fe4 commit c94eb2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web3/wallets.js
Original file line number Diff line number Diff line change
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 c94eb2e

Please sign in to comment.