Skip to content

Commit

Permalink
fix network switch
Browse files Browse the repository at this point in the history
  • Loading branch information
clemsos committed Jun 18, 2024
1 parent d5a8f84 commit f81241c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unlock-app/src/hooks/useProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const useProvider = (config: any) => {
)) as unknown as ethers.BrowserProvider
} else {
await switchBrowserProviderNetwork(networkId)
walletServiceProvider = new ethers.BrowserProvider(pr.provider, 'any')
walletServiceProvider = new ethers.BrowserProvider(window.ethereum!)
}
}
return walletServiceProvider
Expand Down

0 comments on commit f81241c

Please sign in to comment.