From 0944e5c175f726a18517a1ce8b907e04f04f5946 Mon Sep 17 00:00:00 2001 From: HeesungB Date: Sat, 17 Dec 2022 00:52:37 +0900 Subject: [PATCH] Fix all chains bug --- pages/verification/index.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pages/verification/index.tsx b/pages/verification/index.tsx index d49992d..b269e7c 100644 --- a/pages/verification/index.tsx +++ b/pages/verification/index.tsx @@ -136,6 +136,16 @@ export default function VerificationPage() { init(); }, []); + useEffect(() => { + setAllChains({ + chainId: "all chains", + chainName: "all chains", + prefix: `all chains(${chainList.length})`, + address: chainList.map((chain) => chain.chainName).join(", "), + chainImageUrl: AllChainsIcon, + }); + }, [chainList]); + useEffect(() => { const disabledChainList = chainList.filter((chain) => { for (const registeredChain of registeredChainList) {