diff --git a/src/main/webapp/app/overview/exercise-details/exercise-details-student-actions.component.ts b/src/main/webapp/app/overview/exercise-details/exercise-details-student-actions.component.ts index 31bf3053b9cf..8ea7bb24fc6b 100644 --- a/src/main/webapp/app/overview/exercise-details/exercise-details-student-actions.component.ts +++ b/src/main/webapp/app/overview/exercise-details/exercise-details-student-actions.component.ts @@ -93,13 +93,12 @@ export class ExerciseDetailsStudentActionsComponent implements OnInit { } startExercise() { - this.exercise.loading = true; - if (this.exercise.type === ExerciseType.QUIZ) { // Start the quiz return this.router.navigate(['/quiz', this.exercise.id]); } + this.exercise.loading = true; this.courseExerciseService .startExercise(this.courseId, this.exercise.id) .finally(() => (this.exercise.loading = false))