From 56bf85acae40825caf29263fc600ddf2385680bb Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Sat, 19 Sep 2020 08:48:45 -0700 Subject: [PATCH] Typo in date fix --- hooks/useDateRange.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),