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
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Umer committed Nov 15, 2023
1 parent 6ca126c commit dc1b556
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 dc1b556

Please sign in to comment.