diff --git a/hooks/useDateRange.js b/hooks/useDateRange.js index a507d59c..13703d9f 100644 --- a/hooks/useDateRange.js +++ b/hooks/useDateRange.js @@ -9,7 +9,7 @@ export default function useDateRange(websiteId, defaultDateRange = '24hour') { if (typeof globalDefault === 'string') { globalDateRange = getDateRange(globalDefault); - } else if (typeof globalDateRange === 'object') { + } else if (typeof globalDefault === 'object') { globalDateRange = { ...globalDefault, startDate: parseISO(globalDefault.startDate),