Fixed bug in global date range setting.

This commit is contained in:
Mike Cao 2020-09-18 15:40:42 -07:00
parent 9eca86a4fc
commit 7d25fd6876
2 changed files with 12 additions and 5 deletions

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