Minor fix regarding future assignments
This commit is contained in:
@@ -6,8 +6,8 @@ export const futureAssignmentFilter = (a: Assignment) => {
|
||||
if(a.start) return false;
|
||||
|
||||
const currentDate = moment();
|
||||
|
||||
if(moment(a.startDate).isBefore(currentDate)) return true;
|
||||
const startDate = moment(a.startDate);
|
||||
if(startDate.isAfter(currentDate)) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user