From 57d126e87c5591b8f2ed2ebd038dc4a06a4bbbdc Mon Sep 17 00:00:00 2001 From: Awesome-E <54484616+Awesome-E@users.noreply.github.com> Date: Wed, 29 Jan 2025 08:52:05 -0800 Subject: [PATCH] Increase year for *non*-fall terms (#575) --- site/src/hooks/namedAcademicTerm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/hooks/namedAcademicTerm.ts b/site/src/hooks/namedAcademicTerm.ts index a41508b1..1d0e3a98 100644 --- a/site/src/hooks/namedAcademicTerm.ts +++ b/site/src/hooks/namedAcademicTerm.ts @@ -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 }; };