Skip to content

Commit

Permalink
normalize case
Browse files Browse the repository at this point in the history
  • Loading branch information
Joabesv committed Nov 19, 2024
1 parent 95c5411 commit 3146768
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/scripts/sig/homepage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,12 @@ export async function scrapeMenu(
const graduationHistory = scrapeStudentHistory(page!);
const courses = await getUFCourses();
const currentGraduation = shallowStudent.graduations[0]; // We only have one graduation per screen
console.log(currentGraduation)
const studentGraduation = courses.find(
(course) => course.name === currentGraduation.course,
// @ts-ignore
(course) => course.name === currentGraduation.course.toLowerCase(),
);

console.log(studentGraduation, )
if (!studentGraduation) {
console.log("error finding student graduation", currentGraduation);
return null;
Expand Down

0 comments on commit 3146768

Please sign in to comment.