Skip to content

Commit

Permalink
Merge pull request #143 from h5p/bugfix/HFP-3907-fix-toggle-answered-…
Browse files Browse the repository at this point in the history
…dot-for-last-question

HFP-3907 Fix toggle dot answered state for last question
  • Loading branch information
devland authored Aug 22, 2024
2 parents 63499df + 3c5e702 commit 6694891
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/questionset.js
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,8 @@ H5P.QuestionSet = function (options, contentId, contentData) {
}

if (currentQuestion + direction >= questionInstances.length) {
toggleCurrentDot(currentQuestion, false);
toggleAnsweredDot(currentQuestion, questionInstances[currentQuestion].getAnswerGiven());
_displayEndGame();
}
else {
Expand Down

0 comments on commit 6694891

Please sign in to comment.