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);