Updated date range handling.

This commit is contained in:
Mike Cao committed 2023-05-28 22:28:11 -07:00
1 parent bfb52eb678
commit e9b0d3f796
4 files changed
+25 -15

No files matched your search

+1 -1
View File
@@ -65,7 +65,7 @@ export function DateFilter({
].filter(n => n);
const renderValue = value => {
return value === 'custom' ? (
return value.startsWith('range') ? (
<CustomRange startDate={startDate} endDate={endDate} onClick={() => handleChange('custom')} />
) : (
options.find(e => e.value === value).label