Skip to content

Commit

Permalink
fix: don't return module
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook committed Jul 4, 2023
1 parent 7b287a0 commit 14a7fb5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/hooks/wallets/wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 14a7fb5

Please sign in to comment.