Skip to content

Commit

Permalink
bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
nitishpatel committed Jun 10, 2022
1 parent 824703a commit c098fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/connectors/injected.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const ConnectToInjected = async () => {
let provider = null;
if (typeof window.ethereum !== 'undefined') {
provider = window.ethereum;
if (provider.currentProvider.isMetaMask) {
if (provider.isMetaMask) {
try {
await provider.request({ method: 'eth_requestAccounts' })
} catch (error) {
Expand Down

0 comments on commit c098fed

Please sign in to comment.