Fixed "All time" and "Custom range" date selections.

This commit is contained in:
Mike Cao committed 2024-02-16 11:51:48 -08:00
1 parent 858864ef7f
commit a24e8b6396
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -92,7 +92,7 @@ export function DateFilter({
const handleClose = () => setShowPicker(false);
const renderValue = (value: string) => {
const { unit } = parseDateValue(value);
const { unit } = parseDateValue(value) || {};
if (offset && unit === 'year') {
return formatDate(startDate, 'yyyy', locale);