Skip to content

Commit

Permalink
Merge pull request #444 from concord-consortium/187021319-fix-avg-sco…
Browse files Browse the repository at this point in the history
…re-calc

fix: Average rubric score calculation [PT-187021319]
  • Loading branch information
dougmartin authored Mar 6, 2024
2 parents ece3441 + fdea516 commit ff170f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/util/scoring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const computeAvgScore = (scoringSettings: ScoringSettings, rubric: Rubric
const rubricScores = getRubricScores(rubric, feedbacks);
const {totalScore, scoredQuestions} = rubricScores.reduce((acc, cur) => {
let {totalScore, scoredQuestions} = acc;
if (cur !== null) {
if (cur) {
totalScore += cur;
scoredQuestions++;
}
Expand Down

0 comments on commit ff170f6

Please sign in to comment.