Skip to content

Commit

Permalink
Merge pull request #98 from lost-university/fix_term_validation
Browse files Browse the repository at this point in the history
Fix condition check
  • Loading branch information
StefanieJaeger authored Jan 30, 2025
2 parents 0a24a12 + d480384 commit 7fcc2d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/validation-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export class ValidationHelper {
}

static isModuleInWrongTerm(module: Module, term: Term): boolean {
return term === 'both' ? false : module.term === term;
return term === 'both' ? false : module.term !== term;
}

private static isModuleInWrongTermForSemester(module: Module, semesterInfo: SemesterInfo): boolean {
Expand Down

0 comments on commit 7fcc2d8

Please sign in to comment.