From 2765200b6c16bc747d0b0098741f09089853e444 Mon Sep 17 00:00:00 2001 From: Rafay Date: Wed, 11 Oct 2023 17:28:10 +0200 Subject: [PATCH] fix: make progress graph respect course settings (#1194) (cherry picked from commit 391ea08b20dfa425e1a2a6622ae742b22731cd91) --- src/course-home/progress-tab/ProgressTab.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/course-home/progress-tab/ProgressTab.jsx b/src/course-home/progress-tab/ProgressTab.jsx index 9e0c6d5a4c..1ff7e07a46 100644 --- a/src/course-home/progress-tab/ProgressTab.jsx +++ b/src/course-home/progress-tab/ProgressTab.jsx @@ -20,7 +20,7 @@ const ProgressTab = () => { } = useSelector(state => state.courseHome); const { - gradesFeatureIsFullyLocked, + gradesFeatureIsFullyLocked, disableProgressGraph, } = useModel('progress', courseId); const applyLockedOverlay = gradesFeatureIsFullyLocked ? 'locked-overlay' : ''; @@ -56,7 +56,7 @@ const ProgressTab = () => {
{/* Main body */}
- + {!disableProgressGraph && } {!wideScreen && isVisible('CertificateStatus') && } {isVisible('Grades') && } {isVisible('GradeBreakdown') && (