From 6e96fe61d8121bc8dad968c5954698b673c76c4c Mon Sep 17 00:00:00 2001 From: JayJay1024 Date: Thu, 21 Jul 2022 13:01:43 +0800 Subject: [PATCH] fix: filter talisman ethereum address --- src/providers/wallet.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/wallet.tsx b/src/providers/wallet.tsx index 99022346..98740571 100644 --- a/src/providers/wallet.tsx +++ b/src/providers/wallet.tsx @@ -104,7 +104,7 @@ export const WalletProvider = ({ children }: PropsWithChildren) => { const sub$$ = walletToUse.accounts.subscribe((accs) => { const extension = accs - .filter((acc) => !acc.genesisHash || acc.genesisHash === apiGenesisHash) + .filter((acc) => (!acc.genesisHash || acc.genesisHash === apiGenesisHash) && isValidAddress(acc.address)) .map((acc) => { const { address, genesisHash, name, type } = acc;