From 14a7fb5dabb1742265dc05a5f91c7b5bde2748b8 Mon Sep 17 00:00:00 2001 From: iamacook Date: Tue, 4 Jul 2023 18:37:21 +0200 Subject: [PATCH] fix: don't return module --- src/hooks/wallets/wallets.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hooks/wallets/wallets.ts b/src/hooks/wallets/wallets.ts index 8260878602..474ab89ce7 100644 --- a/src/hooks/wallets/wallets.ts +++ b/src/hooks/wallets/wallets.ts @@ -33,6 +33,11 @@ const walletConnectV1 = (): WalletInit => { } const walletConnectV2 = (chain: ChainInfo): WalletInit => { + // WalletConnect v2 requires a project ID + if (!WC_PROJECT_ID) { + return () => null + } + return walletConnect({ version: 2, projectId: WC_PROJECT_ID,