Skip to content

Commit

Permalink
Respect 'both' for term of module
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanieJaeger committed Jan 30, 2025
1 parent d480384 commit 54f00c1
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 54f00c1

Please sign in to comment.