From 236fc7fbf7906dd3a1965fb540899da57e6034be Mon Sep 17 00:00:00 2001 From: Nevo David Date: Sat, 16 Mar 2024 17:24:44 +0700 Subject: [PATCH] feat: fix different weeks comments --- apps/frontend/src/components/launches/calendar.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/frontend/src/components/launches/calendar.tsx b/apps/frontend/src/components/launches/calendar.tsx index fbfe6d19..97cc2ebd 100644 --- a/apps/frontend/src/components/launches/calendar.tsx +++ b/apps/frontend/src/components/launches/calendar.tsx @@ -109,6 +109,7 @@ export const Calendar = () => { .local() .format('YYYY-MM-DD HH:mm') === dayjs() + .isoWeek(currentWeek) .isoWeekday(index + 1) .hour(+hour.split(':')[0] - 1) .minute(0) @@ -116,10 +117,12 @@ export const Calendar = () => { )?.total || 0 } date={dayjs() + .isoWeek(currentWeek) .isoWeekday(index + 1) .hour(+hour.split(':')[0] - 1) .minute(0)} /> + {console.log(currentWeek)} {['00', '10', '20', '30', '40', '50'].map((num) => (