website/src/views/timetable/ModulesTableFooter.tsx
Function ModulesTableFooter
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
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),