Skip to content

Commit

Permalink
chore: hide progress points from assignment status (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedbashir authored Dec 2, 2024
1 parent e9c4928 commit dd6344c
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions Course/Course/Presentation/Subviews/CustomDisclosureGroup.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit dd6344c

Please sign in to comment.