From 451fbc84a44489fa61e135c7d1f239c4f705985d Mon Sep 17 00:00:00 2001 From: Brian Cao Date: Fri, 20 Jan 2023 12:45:45 -0800 Subject: [PATCH] Even out calendar. --- components/common/Calendar.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/common/Calendar.js b/components/common/Calendar.js index e9e22573..bee65abf 100644 --- a/components/common/Calendar.js +++ b/components/common/Calendar.js @@ -123,8 +123,7 @@ const DaySelector = ({ date, minDate, maxDate, locale, onSelect }) => { } const days = []; - const weekCount = addDays(startDay, 36).getMonth() === month ? 42 : 35; - for (let i = 0; i < weekCount; i++) { + for (let i = 0; i < 42; i++) { days.push(addDays(startDay, i)); }