Skip to content

Commit

Permalink
fix: make progress graph respect course settings
Browse files Browse the repository at this point in the history
  • Loading branch information
RafayGhafoor committed Sep 25, 2023
1 parent 168ed1e commit c064e07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/course-home/progress-tab/ProgressTab.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const ProgressTab = () => {
} = useSelector(state => state.courseHome);

const {
gradesFeatureIsFullyLocked,
gradesFeatureIsFullyLocked, disableProgressGraph,
} = useModel('progress', courseId);

const applyLockedOverlay = gradesFeatureIsFullyLocked ? 'locked-overlay' : '';
Expand All @@ -38,7 +38,7 @@ const ProgressTab = () => {
<div className="row w-100 m-0">
{/* Main body */}
<div className="col-12 col-md-8 p-0">
<CourseCompletion />
{!disableProgressGraph && <CourseCompletion />}
{!wideScreen && <CertificateStatus />}
<CourseGrade />
<div className={`grades my-4 p-4 rounded raised-card ${applyLockedOverlay}`} aria-hidden={gradesFeatureIsFullyLocked}>
Expand Down

0 comments on commit c064e07

Please sign in to comment.