Skip to content

Commit

Permalink
Return default value for getDatesBetween
Browse files Browse the repository at this point in the history
  • Loading branch information
majakomel committed Feb 20, 2023
1 parent 7ca542d commit 8ae9d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/aggregation/mat/computations.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function getDatesBetween(startDate, endDate, timeGrain) {
const weekStart = dayjs(currentDate).utc().startOf('week')
dateSet.add(weekStart.toISOString().slice(0, 10))
currentDate = weekStart.add(1, 'week').toDate()
} else if (timeGrain === 'day') {
} else {
dateSet.add(currentDate.toISOString().slice(0, 10))
currentDate.setDate(currentDate.getDate() + 1)
}
Expand Down

1 comment on commit 8ae9d18

@vercel
Copy link

@vercel vercel bot commented on 8ae9d18 Feb 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

explorer – ./

explorer-ooni1.vercel.app
explorer-one.vercel.app
explorer-git-master-ooni1.vercel.app

Please sign in to comment.