Skip to content

Commit

Permalink
Update packages/walletconnect-v2/src/index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Zach Pomerantz <zzmp@uniswap.org>
  • Loading branch information
JFrankfurt and zzmp authored Aug 4, 2023
1 parent 89a5307 commit f998eee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/walletconnect-v2/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ export class WalletConnect extends Connector {
desiredChainId: number | undefined = this.defaultChainId
): Promise<WalletConnectProvider> {
if (this.eagerConnection) return this.eagerConnection
this.eagerConnection = this.initializeProvider(desiredChainId)
return this.eagerConnection
return (this.eagerConnection = this.initializeProvider(desiredChainId))
}

/** {@inheritdoc Connector.connectEagerly} */
Expand Down

0 comments on commit f998eee

Please sign in to comment.