diff --git a/src/util/periods.js b/src/util/periods.js index 3eb40b367..777ab1bd6 100644 --- a/src/util/periods.js +++ b/src/util/periods.js @@ -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) }