Skip to content

Commit 85625c5

Browse files
authored
fix(relations): when startDate is today, cards are correctly displayed
1 parent 30027d4 commit 85625c5

File tree

1 file changed

+1
-1
lines changed
  • src/components/blocs/relations/utils

1 file changed

+1
-1
lines changed

src/components/blocs/relations/utils/status.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export function isFinished(relation) {
66
}
77

88
export function spreadByStatus(data) {
9-
const current = data?.filter((el) => (el.startDate < getComparableNow() || (!el.startDate && !el.endDate)) && !isFinished(el));
9+
const current = data?.filter((el) => (el.startDate <= getComparableNow() || (!el.startDate && !el.endDate)) && !isFinished(el));
1010
const inactive = data?.filter((el) => isFinished(el));
1111
const forthcoming = data?.filter((el) => el.startDate > getComparableNow());
1212
const counts = {

0 commit comments

Comments
 (0)