Skip to content

Commit

Permalink
Fix the reporting of category in the dasboard
Browse files Browse the repository at this point in the history
  • Loading branch information
torinfo committed Apr 14, 2023
1 parent 801a89d commit d5a4d9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website_code/scripts/result.js
Expand Up @@ -580,8 +580,8 @@ function XTResults(fullcompletion, trackingState) {
case "match":
// If unique targets, match answers by target, otherwise match by source
const targets = [];
for (let j = 0; j < trackingState.interactions[i].nrinteractions; j++) {
targets.push(trackingState.interactions[i].correctOptions[c].target);
for (let j = 0; j < trackingState.interactions[i].correctOptions.length; j++) {
targets.push(trackingState.interactions[i].correctOptions[j].target);
}
// Check whether values of targets are unique
const uniqueTargets = targets.length === new Set(targets).size;
Expand Down

0 comments on commit d5a4d9a

Please sign in to comment.