Even out calendar.

This commit is contained in:
Brian Cao 2023-01-20 12:45:45 -08:00
parent d9ba4097ee
commit 451fbc84a4

View File

@ -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));
}