diff --git a/src/helpers/semester-info.ts b/src/helpers/semester-info.ts index 308b8db..9794d90 100644 --- a/src/helpers/semester-info.ts +++ b/src/helpers/semester-info.ts @@ -93,7 +93,7 @@ export class SemesterInfo { difference(other: SemesterInfo) { const years = this.year - other.year; - if (this.isSpringSemester && other.isSpringSemester) { + if (this.isSpringSemester == other.isSpringSemester) { return years * 2; } else if (this.isSpringSemester && !other.isSpringSemester) { return years * 2 - 1;