Skip to content

Commit

Permalink
Fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
uyencfi committed Mar 20, 2024
1 parent 03cb202 commit d3e2fb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/src/views/modules/ModuleFinderSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@ const ModuleFinderSidebar: React.FC = () => {
const examClashFilters = Semesters.map((semester): FilterItem | null => {
const timetable = getSemesterTimetable(semester);
const modules = getSemesterModules(timetable, allModules);
// Filter for modules with non-empty exam timings, and map them to new ExamTiming objects
// Filter for modules with non-empty exam timings, and map them to new ExamTiming objects
const examTimings = modules.reduce<ExamTiming[]>((result: ExamTiming[], mod: Module) => {
const data = getModuleSemesterData(mod, semester);
if (data?.examDate && data?.examDuration) {
result.push({

Check warning on line 132 in website/src/views/modules/ModuleFinderSidebar.tsx

View check run for this annotation

Codecov / codecov/patch

website/src/views/modules/ModuleFinderSidebar.tsx#L129-L132

Added lines #L129 - L132 were not covered by tests
start: data.examDate,
duration: data.examDuration,
})
});
}
return result;

Check warning on line 137 in website/src/views/modules/ModuleFinderSidebar.tsx

View check run for this annotation

Codecov / codecov/patch

website/src/views/modules/ModuleFinderSidebar.tsx#L137

Added line #L137 was not covered by tests
}, []);
Expand Down

0 comments on commit d3e2fb6

Please sign in to comment.