Unset Web3 Node on Wallet Reset (#409)

* unset web3 node on wallet reset

* use wallet TypeKeys enum instead of strings
This commit is contained in:
skubakdj 2017-11-16 13:16:09 -05:00 committed by Daniel Ternyak
parent f4fbb16dd8
commit 2a6d93eaa4
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}