Typo in date fix

This commit is contained in:
Mike Cao 2020-09-19 08:48:45 -07:00
parent 00c0fc5bac
commit 56bf85acae

View File

@ -9,7 +9,7 @@ export default function useDateRange(websiteId, defaultDateRange = '24hour') {
if (typeof globalDefault === 'string') { if (typeof globalDefault === 'string') {
globalDateRange = getDateRange(globalDefault); globalDateRange = getDateRange(globalDefault);
} else if (typeof globalDateRange === 'object') { } else if (typeof globalDefault === 'object') {
globalDateRange = { globalDateRange = {
...globalDefault, ...globalDefault,
startDate: parseISO(globalDefault.startDate), startDate: parseISO(globalDefault.startDate),