Skip to content

Commit

Permalink
fixup! fix: make progress graph respect course settings (openedx#1194)
Browse files Browse the repository at this point in the history
  • Loading branch information
xitij2000 committed Oct 28, 2024
1 parent 2765200 commit ed5b603
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/course-home/progress-tab/ProgressTab.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ const ProgressTab = () => {
{!disableProgressGraph && <CourseCompletion />}
{!wideScreen && isVisible('CertificateStatus') && <CertificateStatus />}
{isVisible('Grades') && <CourseGrade />}
{isVisible('GradeBreakdown') && (
{(isVisible('GradeSummary') || isVisible('GradeDetails')) && (
<div className={`grades my-4 p-4 rounded raised-card ${applyLockedOverlay}`} aria-hidden={gradesFeatureIsFullyLocked}>
<GradeSummary />
<DetailedGrades />
{isVisible('GradeSummary') && <GradeSummary />}
{isVisible('GradeDetails') && <DetailedGrades />}
</div>
)}
</div>
Expand Down

0 comments on commit ed5b603

Please sign in to comment.