Skip to content

Commit 773926b

Browse files
committed
Merge branch 'main' into develop
2 parents 96f79fd + 183a0d0 commit 773926b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/frontend/src/components/ChangeRequestDropdown.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ const getFilteredChangeRequests = (changeRequests: ChangeRequest[], user: Authen
1212
const fiveDaysAgo = subDays(today, 5);
1313

1414
const filteredRequests = changeRequests.filter(
15-
(cr) => cr.dateImplemented && cr.accepted && isWithinInterval(cr.dateImplemented, { start: fiveDaysAgo, end: today })
15+
(cr) =>
16+
cr.accepted && (cr.dateImplemented ? isWithinInterval(cr.dateImplemented, { start: fiveDaysAgo, end: today }) : true)
1617
);
1718

1819
// The current user's CRs should be at the top

0 commit comments

Comments
 (0)