Skip to content

Commit

Permalink
Increase year for *non*-fall terms (#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
Awesome-E authored Jan 29, 2025
1 parent 3528122 commit 57d126e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/src/hooks/namedAcademicTerm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ export const useNamedAcademicTerm = () => {
if (year == null || quarter == null) return { year: null, quarter: null };

const quarterName = quarterDisplayNames[planner[year].quarters[quarter].name];
const yearName = planner[year].startYear + Number(quarterName === quarterDisplayNames.Fall);
const yearName = planner[year].startYear + Number(quarterName !== quarterDisplayNames.Fall);
return { year: yearName, quarter: quarterName };
};

0 comments on commit 57d126e

Please sign in to comment.