fix: update progress tab assignment policy logic (#482)

This commit is contained in:
Carla Duarte
2021-06-11 12:05:40 -04:00
committed by GitHub
parent 6949fa8201
commit 46e459aaf3

View File

@@ -47,6 +47,10 @@ function normalizeAssignmentPolicies(assignmentPolicies, sectionScores) {
numAssignmentsCreated,
} = gradeByAssignmentType[assignmentType];
if (!numPointsPossible) {
return;
}
numAssignmentsCreated++;
if (numAssignmentsCreated <= gradeByAssignmentType[assignmentType].numTotalExpectedAssignments) {
// Remove a placeholder grade so long as the number of recorded created assignments is less than the number