Updated date range handling.

This commit is contained in:
Mike Cao 2023-05-28 22:28:11 -07:00
parent bfb52eb678
commit e9b0d3f796
4 changed files with 25 additions and 15 deletions

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