Skip to content

Commit

Permalink
Fixed switch account
Browse files Browse the repository at this point in the history
  • Loading branch information
babkenmes committed Dec 12, 2024
1 parent 3f40171 commit b3faf18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wallets/evm/useEVM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export default function useEVM({ network }: Props): WalletProvider {
}

const switchAccount = async (wallet: Wallet, address: string) => {
const connector = activeConnectors.find(c => c.name === wallet.connector)
const connector = getConnections(config).find(c => c.connector.name === wallet.connector)?.connector
if (!connector)
throw new Error("Connector not found")
const { accounts } = await switchAccountAsync({ connector })
Expand Down

0 comments on commit b3faf18

Please sign in to comment.