diff --git a/src/logic/wallets/store/middlewares/providerWatcher.js b/src/logic/wallets/store/middlewares/providerWatcher.js index 989a5059..2832ba9b 100644 --- a/src/logic/wallets/store/middlewares/providerWatcher.js +++ b/src/logic/wallets/store/middlewares/providerWatcher.js @@ -43,11 +43,11 @@ const providerWatcherMware = (store: Store) => (next: Function) => const networkChanged = currentProviderProps.network !== providerInfo.network - store.dispatch(closeSnackbar({ dismissAll: true })) - if ( - currentProviderProps.account !== providerInfo.account - || networkChanged - ) { + if (networkChanged) { + store.dispatch(closeSnackbar({ dismissAll: true })) + } + + if (currentProviderProps.account !== providerInfo.account || networkChanged) { store.dispatch(fetchProvider(web3)) } }, 2000)