Skip to content

Commit

Permalink
fix: walletconnect modal re-open after user rejection (#2693)
Browse files Browse the repository at this point in the history
Co-authored-by: M0kY <moky@example.com>
  • Loading branch information
M0kY and M0kY authored Nov 1, 2021
1 parent 02dbed7 commit 5026ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/WalletModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export default function WalletModal({
setWalletView(WALLET_VIEWS.PENDING)

// if the connector is walletconnect and the user has already tried to connect, manually reset the connector
if (connector instanceof WalletConnectConnector && connector.walletConnectProvider?.wc?.uri) {
if (connector instanceof WalletConnectConnector) {
connector.walletConnectProvider = undefined
}

Expand Down

2 comments on commit 5026ebd

@vercel
Copy link

@vercel vercel bot commented on 5026ebd Nov 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

interface – ./

interface-git-main-uniswap.vercel.app
interface-uniswap.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 5026ebd Nov 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

widgets – ./

widgets-git-main-uniswap.vercel.app
widgets-uniswap.vercel.app

Please sign in to comment.