Skip to content

Commit

Permalink
fix events day-view (#2087)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratul-Saha-003 authored Jul 25, 2024
1 parent c9067f9 commit c8b8e20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/EventCalendar/EventCalendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,8 @@ const Calendar: React.FC<InterfaceCalendarProps> = ({
);

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;
Expand Down

0 comments on commit c8b8e20

Please sign in to comment.