prevent log out during switch accounts

This commit is contained in:
Bill He
2023-09-05 10:58:33 -07:00
parent 311490f144
commit 6345df1b2a
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -192,7 +192,7 @@ const useAccountsContext = () => {
} catch (error) {
log('useAccounts/setLocalDydxWallet', error);
}
} else if (evmAddress && signerWagmi) {
} else if (evmAddress) {
if (!localDydxWallet) {
dispatch(setOnboardingState(OnboardingState.WalletConnected));
+1
View File
@@ -153,6 +153,7 @@ class AbacusStateManager {
// ------ Set Data ------ //
setStore = (store: RootStore) => {
this.store = store;
this.stateNotifier.setStore(store);
};