From d8685d92e8780c3441c81f185179f5091880d644 Mon Sep 17 00:00:00 2001 From: Luc Date: Tue, 29 Oct 2024 13:01:41 +0000 Subject: [PATCH] Bump --- packages/thorin-core/package.json | 2 +- .../thorin-core/src/components/connect-modal/index.ts | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/thorin-core/package.json b/packages/thorin-core/package.json index cb27c68..fee66be 100644 --- a/packages/thorin-core/package.json +++ b/packages/thorin-core/package.json @@ -1,6 +1,6 @@ { "name": "@ens-tools/thorin-core", - "version": "0.1.4-4", + "version": "0.1.4-5", "type": "module", "main": "./dist/esm/index.js", "types": "./dist/types/index.d.ts", diff --git a/packages/thorin-core/src/components/connect-modal/index.ts b/packages/thorin-core/src/components/connect-modal/index.ts index 8fe67b0..5de20fd 100644 --- a/packages/thorin-core/src/components/connect-modal/index.ts +++ b/packages/thorin-core/src/components/connect-modal/index.ts @@ -205,11 +205,13 @@ export class ThorinConnectModal extends LitElement { const isWalletConnect = this.activeConnector?.type === 'walletConnect'; - const isLoading = this.status === 'connecting'; - const isDisconnected = this.status === 'disconnected'; - const isConnected = this.status === 'connected'; + const isLoading = account?.isConnecting || this.status === 'connecting'; + const isDisconnected = + account?.isDisconnected || this.status === 'disconnected'; + const isConnected = account?.isConnected || this.status === 'connected'; const isErrored = this.status === 'errored'; - const isReconnecting = this.status === 'reconnecting'; + const isReconnecting = + account?.isReconnecting || this.status === 'reconnecting'; const connectors = wagmiConfig && getConnectors(wagmiConfig);