Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

Commit b4f24c1

Browse files
committed
fix useMetamask
1 parent c74267e commit b4f24c1

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/hooks/connectors/useMetamask.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ export function useMetamask() {
1111
if (connectors.loading) {
1212
return () => Promise.reject("Metamask connector not ready to be used, yet");
1313
}
14-
const connector = connectors.data.connectors.find(
15-
(c) => c.id === "walletConnect",
16-
);
14+
const connector = connectors.data.connectors.find((c) => c.id === "injected");
1715
invariant(
1816
connector,
1917
"Metamask connector not found, please make sure it is provided to your <ThirdwebProvider />",

0 commit comments

Comments
 (0)