diff --git a/src/addon/mod/lesson/pages/player/player.ts b/src/addon/mod/lesson/pages/player/player.ts index 10e5e3ab0..ab32eb9d6 100644 --- a/src/addon/mod/lesson/pages/player/player.ts +++ b/src/addon/mod/lesson/pages/player/player.ts @@ -570,10 +570,15 @@ export class AddonModLessonPlayerPage implements OnInit, OnDestroy { // Button to continue. if (this.lesson.review && !result.correctanswer && !result.noanswer && !result.isessayquestion && !result.maxattemptsreached) { - this.processData.buttons.push({ - label: 'addon.mod_lesson.reviewquestioncontinue', - pageId: result.newpageid - }); + /* If both the "Yes, I'd like to try again" and "No, I just want to go on to the next question" point to the + same page then don't show the "No, I just want to go on to the next question" button. It's confusing. */ + if (this.pageData.page.id != result.newpageid) { + // Button to continue the lesson (the page to go is configured by the teacher). + this.processData.buttons.push({ + label: 'addon.mod_lesson.reviewquestioncontinue', + pageId: result.newpageid + }); + } } else { this.processData.buttons.push({ label: 'addon.mod_lesson.continue',