fix: walletconnect modal re-open after user rejection (#2693)

Co-authored-by: M0kY <moky@example.com>
This commit is contained in:
M0kY 2021-11-01 18:42:16 +01:00 committed by GitHub
parent 02dbed7a75
commit 5026ebded8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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