From b8075476f9ff1afff68bbd81cb8b7be1d5a22b7f 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 Closes #753 --- src/course-home/progress-tab/ProgressTab.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/course-home/progress-tab/ProgressTab.jsx b/src/course-home/progress-tab/ProgressTab.jsx index 3413d3836f..e98a2f7dd7 100644 --- a/src/course-home/progress-tab/ProgressTab.jsx +++ b/src/course-home/progress-tab/ProgressTab.jsx @@ -17,6 +17,10 @@ const ProgressTab = () => { courseId, } = useSelector(state => state.courseHome); + const { + disableProgressGraph, + } = useModel('courseHomeMeta', courseId); + const { gradesFeatureIsFullyLocked, } = useModel('progress', courseId); @@ -38,7 +42,7 @@ const ProgressTab = () => {
{/* Main body */}
- + {!disableProgressGraph && } {!wideScreen && }