ahbeng/NUSMods

View on GitHub
website/src/reducers/requests.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function requests has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function requests(state: Requests = {}, action: FSA): Requests {
  const { meta } = action;

  // requestStatus is a field specially designed and owned by api request actions
  if (!meta || !meta.requestStatus || !meta[API_REQUEST]) {
Severity: Minor
Found in website/src/reducers/requests.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status