From dc1b556af8bcd63877570c3efc0c22802065b572 Mon Sep 17 00:00:00 2001 From: Muhammad Umer Date: Wed, 15 Nov 2023 14:10:36 +0500 Subject: [PATCH] fix: show first component of complted subsection --- 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() {