From 4bf65b11f0e9b1fcbcd9147480cb638cf82e3424 Mon Sep 17 00:00:00 2001 From: Thiago Marinho Date: Fri, 17 Mar 2023 16:22:36 -0400 Subject: [PATCH] fix the logic of connect function returning the walletAddress --- src/wallet/index.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/wallet/index.ts b/src/wallet/index.ts index f24cc9c..e1e9212 100644 --- a/src/wallet/index.ts +++ b/src/wallet/index.ts @@ -78,8 +78,6 @@ export const connect = async (): Promise => { walletAddress = _accounts[0]; return _accounts[0]; } - } else { - return null; } return walletAddress; @@ -302,7 +300,6 @@ export const isWeb3WalletInstalled = () => { if (typeof window === "undefined") { throw new Error("Should run through Browser"); } - return !!window?.ethereum?.isMetaMask; };