Skip to content

Commit

Permalink
Merge pull request #39 from omnia-digital/dev
Browse files Browse the repository at this point in the history
3.1.3
  • Loading branch information
joshtorres authored Oct 27, 2024
2 parents bd8d943 + 2e12209 commit c04ed83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LivewireCalendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ public function monthGrid()
$firstDayOfGrid = $this->gridStartsAt;
$lastDayOfGrid = $this->gridEndsAt;

$numbersOfWeeks = floor(abs($lastDayOfGrid->diffInWeeks($firstDayOfGrid)) + 1);
$days = floor(abs($lastDayOfGrid->diffInDays($firstDayOfGrid)) + 1);
$numbersOfWeeks = floor(abs($firstDayOfGrid->diffInWeeks($lastDayOfGrid)) + 1);
$days = floor(abs($firstDayOfGrid->diffInDays($lastDayOfGrid)) + 1);

if ($days % 7 != 0) {
throw new Exception("Livewire Calendar not correctly configured. Check initial inputs.");
Expand Down

0 comments on commit c04ed83

Please sign in to comment.