From 3d90ccc7c01af9c5114be14a91632814bb612d25 Mon Sep 17 00:00:00 2001 From: Maria Grimaldi Date: Mon, 12 Jun 2023 11:10:59 -0400 Subject: [PATCH] fix: cast progress graph configuration to string (#495) (cherry picked from commit 51e5e7126c9ea6aa3dfa79469dec40cf23cd14fb) --- src/pages-and-resources/progress/Settings.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages-and-resources/progress/Settings.jsx b/src/pages-and-resources/progress/Settings.jsx index f9326aee8d..33ab4fa9ae 100644 --- a/src/pages-and-resources/progress/Settings.jsx +++ b/src/pages-and-resources/progress/Settings.jsx @@ -10,7 +10,7 @@ import messages from './messages'; const ProgressSettings = ({ intl, onClose }) => { const [disableProgressGraph, saveSetting] = useAppSetting('disableProgressGraph'); - const showProgressGraphSetting = getConfig().ENABLE_PROGRESS_GRAPH_SETTINGS.toLowerCase() === 'true'; + const showProgressGraphSetting = getConfig().ENABLE_PROGRESS_GRAPH_SETTINGS.toString().toLowerCase() === 'true'; const handleSettingsSave = (values) => { if (showProgressGraphSetting) { saveSetting(!values.enableProgressGraph); }