Minor fix regarding future assignments
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user