Skip to content

Commit

Permalink
fixup! feat(suite): networks without token definitions have all token…
Browse files Browse the repository at this point in the history
…s unhidden
  • Loading branch information
tomasklim committed Jul 4, 2024
1 parent 9373772 commit 35861a2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/suite/src/utils/wallet/tokenUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,14 @@ export const getTokens = (

if (!matchesQuery) return;

if ((!hasCoinDefinitions && !isHidden) || (isKnown && !isHidden) || isShown) {
if (isShown) {
shown.push(token);
} else if (hasCoinDefinitions && !isKnown && !isShown) {
} else if (hasCoinDefinitions && !isKnown) {
unverified.push(token);
} else if ((isKnown && isHidden) || (!hasCoinDefinitions && isHidden)) {
} else if (isHidden) {
hidden.push(token);
} else {
shown.push(token);
}
});

Expand Down

0 comments on commit 35861a2

Please sign in to comment.