From d96b34937f276a4b91574f05754e5e6b7cb77cbf Mon Sep 17 00:00:00 2001 From: Saeed Bashir Date: Fri, 29 Nov 2024 14:51:25 +0500 Subject: [PATCH] chore: hide progress points from assignment status --- .../Presentation/Subviews/CustomDisclosureGroup.swift | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Course/Course/Presentation/Subviews/CustomDisclosureGroup.swift b/Course/Course/Presentation/Subviews/CustomDisclosureGroup.swift index 3710e842..9d461b7f 100644 --- a/Course/Course/Presentation/Subviews/CustomDisclosureGroup.swift +++ b/Course/Course/Presentation/Subviews/CustomDisclosureGroup.swift @@ -222,21 +222,13 @@ struct CustomDisclosureGroup: View { guard let sequentialProgress = sequential.sequentialProgress, let assignmentType = sequentialProgress.assignmentType, - let numPointsEarned = sequentialProgress.numPointsEarned, - let numPointsPossible = sequentialProgress.numPointsPossible, let due = sequential.due else { return nil } let daysRemaining = getAssignmentStatus(for: due) - if let courseVertical = sequential.childs.first, - courseVertical.childs.isEmpty { - return "\(assignmentType) - \(daysRemaining)" - } - - return "\(assignmentType) - \(daysRemaining) - \(numPointsEarned) / \(numPointsPossible)" - + return "\(assignmentType) - \(daysRemaining)" } private func canDownloadAllSections(in chapter: CourseChapter) -> Bool {