fix: clear full state on disconnect

This commit is contained in:
Matthew Russell
2024-03-07 12:45:58 +00:00
parent 3c931e180e
commit 6c7d4808e1
+1 -1
View File
@@ -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 };
}
}