Skip to content

Commit

Permalink
fix: handle duplicates in token list
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed May 11, 2023
1 parent b226356 commit ee804da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const VirtualizedTokenList: FC<VirtualizedTokenListProps> = ({
}
return size;
},
getItemKey: (index) => tokens[index].address ?? index,
getItemKey: (index) => `${tokens[index].address}-${index}`,
});

useEffect(() => {
Expand Down

0 comments on commit ee804da

Please sign in to comment.