From c064e0707af8657508865e1da7e311f09973248b Mon Sep 17 00:00:00 2001 From: Rafay Ghafoor Date: Thu, 21 Sep 2023 17:03:41 +0500 Subject: [PATCH] fix: make progress graph respect course settings --- 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 3413d3836f..867035f3c2 100644 --- a/src/course-home/progress-tab/ProgressTab.jsx +++ b/src/course-home/progress-tab/ProgressTab.jsx @@ -18,7 +18,7 @@ const ProgressTab = () => { } = useSelector(state => state.courseHome); const { - gradesFeatureIsFullyLocked, + gradesFeatureIsFullyLocked, disableProgressGraph, } = useModel('progress', courseId); const applyLockedOverlay = gradesFeatureIsFullyLocked ? 'locked-overlay' : ''; @@ -38,7 +38,7 @@ const ProgressTab = () => {
{/* Main body */}
- + {!disableProgressGraph && } {!wideScreen && }