Skip to content

Commit

Permalink
chore: period fix
Browse files Browse the repository at this point in the history
  • Loading branch information
turban committed Sep 12, 2023
1 parent 3f3445a commit aff46b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/periods.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ export const getPeriodNames = () => ({
})

export const filterFuturePeriods = (periods, date) => {
const now = date || new Date(Date.now())
const now = new Date(date || Date.now())
return periods.filter(({ startDate }) => new Date(startDate) < now)
}

0 comments on commit aff46b4

Please sign in to comment.