Skip to content

Commit

Permalink
ST-293 fix token filter logic to not exclude assets without prices (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericHgorski authored Feb 28, 2023
1 parent 9454543 commit c126fb5
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/pages/wallet/AssetList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,12 @@ const AssetList = () => {
),
]
.filter(
(a) => (hideNoWhitelist ? !a.symbol.endsWith("...") : a) // TODO: update and implement whitelist check
(a) => (hideNoWhitelist ? !a.symbol.endsWith("...") : true) // TODO: update and implement whitelist check
)
.filter((asset) => {
if (!hideLowBal) return true

if (alwaysVisibleDenoms.has(asset.denom)) return true

return hideLowBal ? asset.price * toInput(asset.balance) >= 1 : asset
.filter((a) => {
if (!hideLowBal || a.price === 0 || alwaysVisibleDenoms.has(a.denom))
return true
return a.price * toInput(a.balance) >= 1
})
.sort(
(a, b) =>
Expand Down

0 comments on commit c126fb5

Please sign in to comment.