src/modules/events/actions/listen-to-updates.js
Function listenToUpdates
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const listenToUpdates = history => (dispatch, getState) => {
if (!selectUseWebsocketToConnectAugurNode(getState())) return;
augur.events.stopBlockListeners();
augur.events.stopAugurNodeEventListeners();