Skip to content

Commit

Permalink
fix: hide none lowvalue tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
Fhasghrge committed Jul 30, 2024
1 parent 60abe00 commit 4548508
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/views/CommonPopup/AssetList/TokenList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const HomeTokenList = ({
blockedTokens?.length ||
customizeTokens?.length
);
const hasLowValueList = !!lowValueList?.length;

return (
<div>
Expand All @@ -64,7 +65,7 @@ export const HomeTokenList = ({
list={isSearch ? list : currentList}
EmptyComponent={<div></div>}
/>
{!isSearch && hasList && (
{!isSearch && hasList && hasLowValueList && (
<TokenLowValueItem list={lowValueList} className="h-[40px]" />
)}
</div>
Expand Down

0 comments on commit 4548508

Please sign in to comment.