Skip to content

Commit

Permalink
Merge pull request #79 from lost-university/fix-semester-difference-c…
Browse files Browse the repository at this point in the history
…alculation

Fix semester difference calculation
  • Loading branch information
jeremystucki authored Sep 17, 2024
2 parents 53e1571 + e334419 commit 66b8260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/semester-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 66b8260

Please sign in to comment.