fixed incorrect label for extended LOAs when past their original end data
This commit is contained in:
@@ -84,7 +84,7 @@ function loaStatus(loa: LOARequest): "Upcoming" | "Active" | "Overdue" | "Closed
|
||||
|
||||
if (now < start) return "Upcoming";
|
||||
if (now >= start && now <= end) return "Active";
|
||||
if (now > end) return "Overdue";
|
||||
if (now > loa.extended_till || end) return "Overdue";
|
||||
|
||||
return "Overdue"; // fallback
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user