AugurProject/augur-ui

View on GitHub
src/modules/events/actions/listen-to-updates.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function listenToUpdates has 59 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const listenToUpdates = history => (dispatch, getState) => {
  if (!selectUseWebsocketToConnectAugurNode(getState())) return;

  augur.events.stopBlockListeners();
  augur.events.stopAugurNodeEventListeners();
Severity: Major
Found in src/modules/events/actions/listen-to-updates.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status