From 81961d390056a4e63d85900ee66f90765bd63029 Mon Sep 17 00:00:00 2001 From: Ratul Saha Date: Sun, 14 Jul 2024 21:39:46 +0530 Subject: [PATCH] fix events day-view --- src/components/EventCalendar/EventCalendar.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/EventCalendar/EventCalendar.tsx b/src/components/EventCalendar/EventCalendar.tsx index c06f3c5fea..566e66d62a 100644 --- a/src/components/EventCalendar/EventCalendar.tsx +++ b/src/components/EventCalendar/EventCalendar.tsx @@ -318,7 +318,8 @@ const Calendar: React.FC = ({ ); if ( - datas.startTime?.slice(0, 2) == (index % 24).toString() && + parseInt(datas.startTime?.slice(0, 2) as string).toString() == + (index % 24).toString() && datas.startDate == dayjs(currDate).format('YYYY-MM-DD') ) { return datas;