From 6890e45ec21d6dbf726a4b019652554a3a1c7485 Mon Sep 17 00:00:00 2001 From: Isacco Date: Tue, 24 Oct 2023 11:00:04 +0200 Subject: [PATCH] fix: invalid boolean conversion --- .../src/WalletConnectTransport.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/beacon-transport-walletconnect/src/WalletConnectTransport.ts b/packages/beacon-transport-walletconnect/src/WalletConnectTransport.ts index d43cf9d01..3fbf1665d 100644 --- a/packages/beacon-transport-walletconnect/src/WalletConnectTransport.ts +++ b/packages/beacon-transport-walletconnect/src/WalletConnectTransport.ts @@ -68,7 +68,7 @@ export class WalletConnectTransport< if (isLocalStorageAvailable()) { return ((await new LocalStorage().get(StorageKey.WC_2_CORE_PAIRING)) ?? '[]') !== '[]' } else { - return !this.client.signClient?.pairing.getAll()?.length + return !!this.client.signClient?.pairing.getAll()?.length } } @@ -76,7 +76,7 @@ export class WalletConnectTransport< if (isLocalStorageAvailable()) { return ((await new LocalStorage().get(StorageKey.WC_2_CLIENT_SESSION)) ?? '[]') !== '[]' } else { - return !this.client.signClient?.session.getAll()?.length + return !!this.client.signClient?.session.getAll()?.length } }