Skip to content

Commit

Permalink
fix: fix MonthlyCalendar not rendering days (#2340)
Browse files Browse the repository at this point in the history
  • Loading branch information
HellWolf93 authored Dec 19, 2021
1 parent 9ddc826 commit 4d05523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MonthlyCalendar/month.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ export default function Month(props) {
const { firstDayMonth, selectedDate, minDate, maxDate, onSelectDate } = props;
let date = new Date(firstDayMonth);
const lastDayMonth = useMemo(() => getLastDayMonth(firstDayMonth), [firstDayMonth]);
const weeks = [];

function Weeks() {
const weeks = [];
const dayOfWeek = date.getDay();
const daysAfter = 6 - dayOfWeek;
while (date <= lastDayMonth || addDays(date, -dayOfWeek) <= lastDayMonth) {
Expand Down

0 comments on commit 4d05523

Please sign in to comment.