File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/addons/mod/quiz/components/index Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -406,6 +406,7 @@ export class AddonModQuizIndexComponent extends CoreCourseModuleMainActivityComp
406406
407407 // Verify that user can see the review.
408408 const attemptId = this . autoReview . attemptId ;
409+ this . autoReview = undefined ;
409410
410411 if ( this . quizAccessInfo ?. canreviewmyattempts ) {
411412 try {
@@ -452,7 +453,6 @@ export class AddonModQuizIndexComponent extends CoreCourseModuleMainActivityComp
452453 // Check if we need to go to review an attempt automatically.
453454 if ( this . autoReview && this . autoReview . synced ) {
454455 promise = this . goToAutoReview ( ) ;
455- this . autoReview = undefined ;
456456 }
457457
458458 // Refresh data.
@@ -594,7 +594,6 @@ export class AddonModQuizIndexComponent extends CoreCourseModuleMainActivityComp
594594 if ( ! this . isDestroyed && this . isCurrentView ) {
595595 openReview = true ;
596596 }
597- this . autoReview = undefined ;
598597 }
599598
600599 const [ options ] = await Promise . all ( [
You can’t perform that action at this time.
0 commit comments