We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f6408d commit b1e04c8Copy full SHA for b1e04c8
1 file changed
frontend/src/components/ChangeRequests/ChangeRequestsList/ChangeRequestsList.jsx
@@ -59,7 +59,9 @@ function ChangeRequestsList({ handleReviewChangeRequest }) {
59
60
// Get the earliest obligate-by date from executing BLIs
61
const getObligateByDate = (budgetLineItems = []) => {
62
- const executingBlis = budgetLineItems.filter((bli) => bli.status === BLI_STATUS_IN_EXECUTION && bli.date_needed);
+ const executingBlis = budgetLineItems.filter(
63
+ (bli) => bli.status === BLI_STATUS_IN_EXECUTION && bli.date_needed
64
+ );
65
if (executingBlis.length === 0) return null;
66
const dates = executingBlis.map((bli) => new Date(bli.date_needed));
67
return new Date(Math.min(...dates)).toISOString().split("T")[0];
0 commit comments