fix: cast progress graph configuration to string (#495)

This commit is contained in:
Maria Grimaldi
2023-06-12 11:10:59 -04:00
committed by GitHub
parent a53a93ccee
commit 51e5e7126c

View File

@@ -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); }