From a8b6d66fb2617dbc8e606253afa4da98b1b29233 Mon Sep 17 00:00:00 2001 From: Yumin Cho Date: Thu, 23 May 2024 20:16:33 +0900 Subject: [PATCH] feat: filter terminated agendas by endAt instead of startAt --- packages/web/src/components/organisms/AgendaSection.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web/src/components/organisms/AgendaSection.tsx b/packages/web/src/components/organisms/AgendaSection.tsx index f2993a00..60a46aad 100644 --- a/packages/web/src/components/organisms/AgendaSection.tsx +++ b/packages/web/src/components/organisms/AgendaSection.tsx @@ -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; }