Skip to content

Commit

Permalink
fix: update progress tab assignment policy logic (openedx#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carla Duarte authored Jun 11, 2021
1 parent 6949fa8 commit 46e459a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/course-home/data/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 46e459a

Please sign in to comment.