Skip to content

Commit

Permalink
[client] fix incorrect display vault token bal
Browse files Browse the repository at this point in the history
  • Loading branch information
pisuthd committed Jul 29, 2023
1 parent 8f5937c commit 8612fe0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/client/src/hooks/useLegato.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ const useLegato = () => {
owner: address,
coinType: `${packageObjectId}::vault::VAULT`
});
return coins.data.map(item => item.coinObjectId)

return coins.data.filter(item => Number(item.balance) !== 0).map(item => item.coinObjectId)
}, [])

const getAllOrders = useCallback(async () => {
Expand Down

0 comments on commit 8612fe0

Please sign in to comment.