From f4dc82f5f319f9133fac7d8a68023596a773cd96 Mon Sep 17 00:00:00 2001 From: Shinji Date: Sat, 29 Jun 2024 06:02:24 +0000 Subject: [PATCH] fix: fix bug displaying the same token list for blockchains with the same number of tokens --- widget/embedded/src/components/TokenList/TokenList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/embedded/src/components/TokenList/TokenList.tsx b/widget/embedded/src/components/TokenList/TokenList.tsx index b1318bd997..dc4cfeb4f7 100644 --- a/widget/embedded/src/components/TokenList/TokenList.tsx +++ b/widget/embedded/src/components/TokenList/TokenList.tsx @@ -110,7 +110,7 @@ export function TokenList(props: PropTypes) { useEffect(() => { setTokens(list.slice(0, PAGE_SIZE)); - }, [list.length]); + }, [list.length, selectedBlockchain]); const renderList = () => { if (!tokens.length && !!searchedFor) {