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:
parent
f4fbb16dd8
commit
2a6d93eaa4
|
@ -15,6 +15,7 @@ import { getNode, getNodeConfig } from 'selectors/config';
|
||||||
import { getWalletInst } from 'selectors/wallet';
|
import { getWalletInst } from 'selectors/wallet';
|
||||||
import { AppState } from 'reducers';
|
import { AppState } from 'reducers';
|
||||||
import { TypeKeys } from 'actions/config/constants';
|
import { TypeKeys } from 'actions/config/constants';
|
||||||
|
import { TypeKeys as WalletTypeKeys } from 'actions/wallet/constants';
|
||||||
import {
|
import {
|
||||||
toggleOfflineConfig,
|
toggleOfflineConfig,
|
||||||
changeNode,
|
changeNode,
|
||||||
|
@ -106,5 +107,6 @@ export default function* configSaga(): SagaIterator {
|
||||||
);
|
);
|
||||||
yield takeEvery(TypeKeys.CONFIG_NODE_CHANGE_INTENT, handleNodeChangeIntent);
|
yield takeEvery(TypeKeys.CONFIG_NODE_CHANGE_INTENT, handleNodeChangeIntent);
|
||||||
yield takeEvery(TypeKeys.CONFIG_LANGUAGE_CHANGE, reload);
|
yield takeEvery(TypeKeys.CONFIG_LANGUAGE_CHANGE, reload);
|
||||||
yield takeEvery('WALLET_SET', unsetWeb3Node);
|
yield takeEvery(WalletTypeKeys.WALLET_SET, unsetWeb3Node);
|
||||||
|
yield takeEvery(WalletTypeKeys.WALLET_RESET, unsetWeb3Node);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue