AugurProject/augur-ui

View on GitHub
src/modules/positions/actions/load-account-trades.js

Summary

Maintainability
A
1 hr
Test Coverage

Function loadUserTradingHistory has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function loadUserTradingHistory(options = {}, callback = logError) {
  return (dispatch, getState) => {
    const { universe, loginAccount } = getState();
    if (loginAccount.address == null) return callback(null);
    if (options.marketId == null) dispatch(clearAccountTrades());
Severity: Minor
Found in src/modules/positions/actions/load-account-trades.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status