minor fix

This commit is contained in:
Sam 2018-12-31 12:19:08 +01:00
parent c7f7ae38b3
commit 10c0f57111

View File

@ -149,10 +149,11 @@ const dateIncrement = (duration, day) => {
switch (duration) { switch (duration) {
case 'week': case 'week':
return addDays(day, 7) return addDays(day, 7)
case 'month':
return addMonths(day, 1)
case 'year': case 'year':
return addYears(day, 1) return addYears(day, 1)
case 'month':
default:
return addMonths(day, 1)
} }
} }