Fixed bug in global date range setting.

This commit is contained in:
Mike Cao committed 2020-09-18 15:40:42 -07:00
1 parent 9eca86a4fc
commit 7d25fd6876
2 files changed
+12 -5

No files matched your search

+2 -1
View File
@@ -30,7 +30,8 @@ export default function ProfileSettings() {
}
function handleDateChange(values) {
setItem(`umami.date-range`, values);
const { value } = values;
setItem(`umami.date-range`, value === 'custom' ? values : value);
dispatch(setDateRange(0, values));
}