Skip to content

Commit

Permalink
fix: await async saveSetting func to remove unwanted err msg (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
navinkarkera authored Oct 11, 2023
1 parent 97d0a1c commit 6585992
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages-and-resources/progress/Settings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 6585992

Please sign in to comment.