diff --git a/common/sagas/config.ts b/common/sagas/config.ts index 1e17f5441ec..9f94e11aa41 100644 --- a/common/sagas/config.ts +++ b/common/sagas/config.ts @@ -15,6 +15,7 @@ import { getNode, getNodeConfig } from 'selectors/config'; import { getWalletInst } from 'selectors/wallet'; import { AppState } from 'reducers'; import { TypeKeys } from 'actions/config/constants'; +import { TypeKeys as WalletTypeKeys } from 'actions/wallet/constants'; import { toggleOfflineConfig, changeNode, @@ -106,5 +107,6 @@ export default function* configSaga(): SagaIterator { ); yield takeEvery(TypeKeys.CONFIG_NODE_CHANGE_INTENT, handleNodeChangeIntent); yield takeEvery(TypeKeys.CONFIG_LANGUAGE_CHANGE, reload); - yield takeEvery('WALLET_SET', unsetWeb3Node); + yield takeEvery(WalletTypeKeys.WALLET_SET, unsetWeb3Node); + yield takeEvery(WalletTypeKeys.WALLET_RESET, unsetWeb3Node); }