From fb3b8ac952e17d970c54b561ba1c3ae44283369e Mon Sep 17 00:00:00 2001 From: Muhammad Umer Date: Tue, 21 Nov 2023 16:06:22 +0500 Subject: [PATCH] fix: show first component of complted subsection (#1812) --- Source/NewCourseContentController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/NewCourseContentController.swift b/Source/NewCourseContentController.swift index 55cd86271..6811aaee1 100644 --- a/Source/NewCourseContentController.swift +++ b/Source/NewCourseContentController.swift @@ -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() {