mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-21 13:18:53 +00:00
added next due date as today for weekly
This commit is contained in:
parent
c08c0685f3
commit
f49d21d7b4
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ export function shouldDo (day, dailyTask, options = {}) {
|
|||
schedule = schedule.every(daysOfTheWeek).daysOfWeek();
|
||||
|
||||
if (options.nextDue) {
|
||||
let dates = schedule.fromDate(startOfDayWithCDSTime).next(6);
|
||||
let dates = schedule.fromDate(startOfDayWithCDSTime.subtract('1', 'days')).next(6);
|
||||
let filterDates = dates.filter((momentDate) => {
|
||||
let weekDiff = momentDate.week() - moment(startDate).week();
|
||||
let matchX = weekDiff % dailyTask.everyX === 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue