Skip to content

Commit

Permalink
Fixed #956 - calendar shows a redundant week on the calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Jul 8, 2019
1 parent 4c1345a commit 2e87431
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/calendar/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -942,8 +942,9 @@ export class Calendar extends Component {
let dayNo = 1;
let today = new Date();
let weekNumbers = [];
let monthRows = Math.ceil((daysLength + firstDay) / 7);

for(let i = 0; i < 6; i++) {
for(let i = 0; i < monthRows; i++) {
let week = [];

if(i === 0) {
Expand Down

0 comments on commit 2e87431

Please sign in to comment.