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; };