Skip to content

Commit

Permalink
Merge pull request #99 from lost-university/fix_term_validation
Browse files Browse the repository at this point in the history
Respect 'both' for term of module
  • Loading branch information
jeremystucki authored Jan 30, 2025
2 parents 7fcc2d8 + 54f00c1 commit 11747f0
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' || module.term === 'both' ? false : module.term !== term;
}

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

0 comments on commit 11747f0

Please sign in to comment.