diff --git a/frontend/app/components/Dashboard/components/WidgetDateRange/WidgetDateRange.tsx b/frontend/app/components/Dashboard/components/WidgetDateRange/WidgetDateRange.tsx index 92dd649d4..ad11b6703 100644 --- a/frontend/app/components/Dashboard/components/WidgetDateRange/WidgetDateRange.tsx +++ b/frontend/app/components/Dashboard/components/WidgetDateRange/WidgetDateRange.tsx @@ -35,7 +35,7 @@ function WidgetDateRange({ }; const onChangeComparison = (period: any) => { - if (compPeriod) { + if (compPeriod && period) { if (compPeriod.start === period.start && compPeriod.end === period.end) { return; }