From 105c03fa0953e74bfe77eab3035dac83899cbb4e Mon Sep 17 00:00:00 2001 From: Joao Ramos Date: Tue, 3 Sep 2024 21:15:06 +0100 Subject: [PATCH] Fied an issue with the future with autostart --- src/utils/assignments.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/assignments.ts b/src/utils/assignments.ts index 9218d4ae..a4584981 100644 --- a/src/utils/assignments.ts +++ b/src/utils/assignments.ts @@ -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; }