Skip to content

Commit

Permalink
feat: filter terminated agendas by endAt instead of startAt
Browse files Browse the repository at this point in the history
  • Loading branch information
yumincho committed May 23, 2024
1 parent 3207025 commit a8b6d66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/src/components/organisms/AgendaSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const AgendaSection: React.FC = () => {
recent24Hours.setDate(new Date().getDate() - 1);
return showRecentAgendasOnly
? terminatedAgendas.filter(
agenda => new Date(agenda.startAt) > recent24Hours,
agenda => new Date(agenda.endAt) > recent24Hours,
)
: terminatedAgendas;
}
Expand Down

0 comments on commit a8b6d66

Please sign in to comment.