Skip to content

Commit

Permalink
fix: cast progress graph configuration to string (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariajgrimaldi committed Jun 12, 2023
1 parent a53a93c commit 51e5e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages-and-resources/progress/Settings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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); }
Expand Down

0 comments on commit 51e5e71

Please sign in to comment.