From 6c7d4808e19ca2a0946fb29a2e63b5f83bc890ef Mon Sep 17 00:00:00 2001 From: Matthew Russell Date: Thu, 7 Mar 2024 12:45:58 +0000 Subject: [PATCH] fix: clear full state on disconnect --- libs/wallet/src/wallet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/wallet/src/wallet.ts b/libs/wallet/src/wallet.ts index cc287e77c..f176383bf 100644 --- a/libs/wallet/src/wallet.ts +++ b/libs/wallet/src/wallet.ts @@ -132,7 +132,7 @@ export function createConfig(cfg: Config): Wallet { store.setState(getInitialState(), true); return { status: 'disconnected' as const }; } catch (err) { - store.setState(getInitialState()); + store.setState(getInitialState(), true); return { status: 'disconnected' as const }; } }