ahbeng/NUSMods

View on GitHub
website/src/views/timetable/ModulesTableFooter.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function ModulesTableFooter has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const ModulesTableFooter: React.FC<Props> = (props) => {
  const totalMCs = sumBy(props.modules, (module) => parseFloat(module.moduleCredit));
  const shownMCs = sumBy(
    props.modules.filter((module) => !props.hiddenInTimetable.includes(module.moduleCode)),
    (module) => parseFloat(module.moduleCredit),
Severity: Minor
Found in website/src/views/timetable/ModulesTableFooter.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status