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') {
globalDateRange = getDateRange(globalDefault);
} else if (typeof globalDateRange === 'object') {
} else if (typeof globalDefault === 'object') {
globalDateRange = {
...globalDefault,
startDate: parseISO(globalDefault.startDate),