Fied an issue with the future with autostart

This commit is contained in:
Joao Ramos
2024-09-03 21:15:06 +01:00
parent 547e0fc530
commit 105c03fa09

View File

@@ -8,6 +8,9 @@ export const futureAssignmentFilter = (a: Assignment) => {
const currentDate = moment();
const startDate = moment(a.startDate);
if(startDate.isAfter(currentDate)) return true;
if(a.autoStart && a.autoStartDate) {
return moment(a.autoStartDate).isAfter(currentDate);
}
return false;
}