Skip to content

Commit

Permalink
fix: filter talisman ethereum address
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 committed Jul 21, 2022
1 parent 900003a commit 6e96fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const WalletProvider = ({ children }: PropsWithChildren<unknown>) => {

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;

Expand Down

0 comments on commit 6e96fe6

Please sign in to comment.