Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 66d9ded

Browse files
committed
Fix: logCurrentAnswer is async!
1 parent bea64c4 commit 66d9ded

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runestone/timed/js/timed.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ export default class Timed extends RunestoneBase {
354354
this.currentQuestionIndex
355355
].question.checkCurrentAnswer();
356356
if (!this.done) {
357-
this.renderedQuestionArray[
357+
await this.renderedQuestionArray[
358358
this.currentQuestionIndex
359359
].question.logCurrentAnswer();
360360
}
@@ -952,7 +952,7 @@ export default class Timed extends RunestoneBase {
952952
this.currentQuestionIndex
953953
].question;
954954
await currentQuestion.checkCurrentAnswer();
955-
currentQuestion.logCurrentAnswer();
955+
await currentQuestion.logCurrentAnswer();
956956
currentQuestion.renderFeedback();
957957
currentQuestion.disableInteraction();
958958

0 commit comments

Comments
 (0)