Skip to content

Commit

Permalink
Fix calendar.
Browse files Browse the repository at this point in the history
  • Loading branch information
briancao committed Jan 20, 2023
1 parent 5c683f9 commit d9ba409
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/common/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ const DaySelector = ({ date, minDate, maxDate, locale, onSelect }) => {
}

const days = [];
for (let i = 0; i < 35; i++) {
const weekCount = addDays(startDay, 36).getMonth() === month ? 42 : 35;
for (let i = 0; i < weekCount; i++) {
days.push(addDays(startDay, i));
}

Expand Down

0 comments on commit d9ba409

Please sign in to comment.