Skip to content

Commit

Permalink
Update major2-validation.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
denniwang committed Jan 26, 2025
1 parent 210c402 commit 5d9eb8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/common/src/major2-validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ function validateCourseRequirement(
return Err(CourseError(r));
}

const max_combo = 5;
const max_combo = 10;
function validateRangeRequirement(
r: ICourseRange2,
tracker: CourseValidationTracker
Expand Down Expand Up @@ -483,6 +483,7 @@ function validateRangeRequirement(

// If we have too many combinations, return an error
// Error should make validation icon gray
// Not sure why this fixes the infinite loop, but it does
if (solutionsSoFar.length > max_combo) {
return Err({
type: MajorValidationErrorType.Course,
Expand Down

0 comments on commit 5d9eb8f

Please sign in to comment.