AugurProject/augur-ui

View on GitHub
src/modules/account/selectors/core-stats.js

Summary

Maintainability
A
1 hr
Test Coverage

Function createPeriodPLSelector has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    (accountTrades, blockchain, outcomesData, currentTimestamp) => {
      if (!accountTrades || !blockchain) return null;

      const periodDate = new Date(
        currentTimestamp - period * 24 * 60 * 60 * 1000
Severity: Minor
Found in src/modules/account/selectors/core-stats.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status