Fix all chains bug

This commit is contained in:
HeesungB 2022-12-17 00:52:37 +09:00
parent 0eba7c4cf9
commit 0944e5c175

View File

@ -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) {