Skip to content

Commit

Permalink
Merge pull request #52 from Learn-Quickly/dev
Browse files Browse the repository at this point in the history
small fix
  • Loading branch information
advanced-user authored Jun 15, 2024
2 parents a25949f + 812c0d2 commit 7c9d84d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/libs/lib-core/src/interactors/student/exercise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl StudentExerciseInteractor {

match lesson_progresses.iter().find(|lesson_progress| lesson_progress.lesson_id == lesson.id) {
Some(lesson_progress) => {
if lesson_progress.state.ne(&LessonProgressState::InProgress) {
if lesson_progress.state.eq(&LessonProgressState::Pause) {
return Err(ExerciseError::LessonProgressMustBeInProgress {}.into());
}
},
Expand Down

0 comments on commit 7c9d84d

Please sign in to comment.