prevent log out during switch accounts
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
@@ -153,6 +153,7 @@ class AbacusStateManager {
|
||||
|
||||
// ------ Set Data ------ //
|
||||
setStore = (store: RootStore) => {
|
||||
this.store = store;
|
||||
this.stateNotifier.setStore(store);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user