Fied an issue with the future with autostart
This commit is contained in:
@@ -8,6 +8,9 @@ export const futureAssignmentFilter = (a: Assignment) => {
|
|||||||
const currentDate = moment();
|
const currentDate = moment();
|
||||||
const startDate = moment(a.startDate);
|
const startDate = moment(a.startDate);
|
||||||
if(startDate.isAfter(currentDate)) return true;
|
if(startDate.isAfter(currentDate)) return true;
|
||||||
|
if(a.autoStart && a.autoStartDate) {
|
||||||
|
return moment(a.autoStartDate).isAfter(currentDate);
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user