Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
feat: Update Logic for Entering Course Content Based on Course Outline (
Browse files Browse the repository at this point in the history
#1840)

- Incomplete Components in Subsection: Open the first incomplete
  component in the subsection.
- All Components Are Complete in Subsection: Open the first
  sequential component in the subsection.

Fixes: LEARNER-9694
  • Loading branch information
HamzaIsrar12 authored Nov 15, 2023
1 parent 41e449f commit 268074a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ public CourseComponent getFirstIncompleteComponent() {
}
}
if (children.size() > 0) {
return children.get(children.size() - 1);
return children.get(0);
} else {
return null;
}
Expand All @@ -622,7 +622,7 @@ public CourseComponent getFirstIncompleteVideoComponent() {
}
}
if (videos.size() > 0) {
return videos.get(videos.size() - 1);
return videos.get(0);
} else {
return null;
}
Expand Down

0 comments on commit 268074a

Please sign in to comment.