From e727e878f21d4a66473db64b6b9228942c9d6e61 Mon Sep 17 00:00:00 2001 From: Andrii Taran Date: Tue, 25 Jul 2023 11:48:29 +0200 Subject: [PATCH] fix: check walletconnect session on connect --- package.json | 2 +- src/providers/connectors/walletconnect.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7f14c43..6955e02 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@xdefi/wallets-connector", - "version": "1.6.2", + "version": "1.6.3", "description": "Cross chain wallets connector with react hooks", "author": "garageinc", "license": "MIT", diff --git a/src/providers/connectors/walletconnect.ts b/src/providers/connectors/walletconnect.ts index 1d27963..49f8c0a 100644 --- a/src/providers/connectors/walletconnect.ts +++ b/src/providers/connectors/walletconnect.ts @@ -14,7 +14,7 @@ const ConnectToWalletConnect = async ( provider.events ) - if (!provider.connected) { + if (!provider.session) { await provider.connect() }