Skip to content

Commit

Permalink
bugfix for if statement that always evaluated to true
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoBoer authored and torinfo committed Apr 1, 2024
1 parent f6aee62 commit 0a8b551
Showing 1 changed file with 2 additions and 6 deletions.
Expand Up @@ -644,13 +644,9 @@
statement.context.extensions != undefined &&
statement.context.extensions['http://xerte.org.uk/sessionId'] != undefined) {
var attemptkey = statement.context.extensions['http://xerte.org.uk/sessionId'];
if (groupedData[key]['attempts'][attemptkey] == undefined) {
if (!groupedData[key]['attemptkeys'].includes(attemptkey)) {
groupedData[key]['attempts'].push(statement)
groupedData[key]['attemptkeys'].push(
{
key: attemptkey,
}
);
groupedData[key]['attemptkeys'].push(attemptkey)
}
}
}
Expand Down

0 comments on commit 0a8b551

Please sign in to comment.