From 17cf305ddf85d117347d3d4ce7c697414a7ce9df Mon Sep 17 00:00:00 2001 From: Karandeep Singh Date: Fri, 11 Oct 2024 09:39:30 -0400 Subject: [PATCH] set status on disconnect --- packages/adapters/wagmi/src/client.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/adapters/wagmi/src/client.ts b/packages/adapters/wagmi/src/client.ts index e6db7baaaa..8b054c6c10 100644 --- a/packages/adapters/wagmi/src/client.ts +++ b/packages/adapters/wagmi/src/client.ts @@ -672,6 +672,7 @@ export class WagmiAdapter implements ChainAdapter { this.appKit?.resetWcConnection() this.appKit?.resetNetwork(this.chainNamespace) this.appKit?.setAllAccounts([], this.chainNamespace) + this.appKit?.setStatus(status, this.chainNamespace) SafeLocalStorage.removeItem(SafeLocalStorageKeys.WALLET_ID) if (isAuthConnector) { await connector.disconnect()