Skip to content

Commit

Permalink
Typo in date fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao committed Sep 19, 2020
1 parent 00c0fc5 commit 56bf85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/useDateRange.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 56bf85a

Please sign in to comment.