Skip to content

Commit

Permalink
Fix typescript error (#155)
Browse files Browse the repository at this point in the history
Co-authored-by: “xavilien” <“[email protected]”>
  • Loading branch information
Xavilien and “xavilien” authored May 18, 2024
1 parent affebe8 commit 062f952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/app/fce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export const aggregateCourses = (
if (findCourse.length > 0) workload += parseUnits(findCourse[0].units);
}

const totalUnits = courses.reduce((acc, curr) => acc + parseUnits(curr.units) + parseUnits(curr.manualUnits), 0);
const totalUnits = courses.reduce((acc, curr) => acc + parseUnits(curr.units) + parseUnits(curr.manualUnits || ""), 0);
const varUnits = courses.filter((course) => !isValidUnits(course.units));
if (varUnits.length > 0) {
unitsMessage.push(
Expand Down

0 comments on commit 062f952

Please sign in to comment.