Minor fix regarding future assignments

This commit is contained in:
Joao Ramos
2024-09-03 20:51:11 +01:00
parent 5d26af511c
commit bf7793e103

View File

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