diff --git a/src/pages-and-resources/progress/Settings.jsx b/src/pages-and-resources/progress/Settings.jsx index 39e12c4b3d..965f110b1b 100644 --- a/src/pages-and-resources/progress/Settings.jsx +++ b/src/pages-and-resources/progress/Settings.jsx @@ -12,8 +12,8 @@ const ProgressSettings = ({ intl, onClose }) => { const [disableProgressGraph, saveSetting] = useAppSetting('disableProgressGraph'); const showProgressGraphSetting = getConfig().ENABLE_PROGRESS_GRAPH_SETTINGS.toString().toLowerCase() === 'true'; - const handleSettingsSave = (values) => { - if (showProgressGraphSetting) { saveSetting(!values.enableProgressGraph); } + const handleSettingsSave = async (values) => { + if (showProgressGraphSetting) { await saveSetting(!values.enableProgressGraph); } }; return (