Skip to content

Commit

Permalink
fix: add condition for detected tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
sahar-fehri committed Jan 2, 2025
1 parent eae8fbb commit b0ce695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/components/app/assets/asset-list/asset-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const AssetList = ({ onClickAsset, showTokensLinks }: AssetListProps) => {
);

await Promise.all(importPromises);
} else {
} else if (detectedTokens.length > 0) {
await dispatch(addImportedTokens(detectedTokens, networkClientId));
detectedTokens.forEach((importedToken: Token) => {
trackEvent({
Expand Down

0 comments on commit b0ce695

Please sign in to comment.