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

Commit

Permalink
fix: show first component of complted subsection (#1812)
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Umer committed Nov 21, 2023
1 parent 3dcb965 commit fb3b8ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/NewCourseContentController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class NewCourseContentController: UIViewController, InterfaceOrientationOverridi
} ?? []
}

currentBlock = blocks.first(where: { !$0.isCompleted }) ?? blocks.last
currentBlock = blocks.first(where: { !$0.isCompleted }) ?? blocks.first
}

private func updateView() {
Expand Down

0 comments on commit fb3b8ac

Please sign in to comment.