From 9e935c4fbf58ecaee628954069836719af462799 Mon Sep 17 00:00:00 2001 From: Kamil Niemczycki Date: Mon, 6 Jun 2022 12:45:16 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Krzysztof Rewak --- app/Domain/CalendarGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Domain/CalendarGenerator.php b/app/Domain/CalendarGenerator.php index f2c69f3..d1f6cb8 100644 --- a/app/Domain/CalendarGenerator.php +++ b/app/Domain/CalendarGenerator.php @@ -42,7 +42,7 @@ class CalendarGenerator "isToday" => $day->isToday(), "isWeekend" => $day->isWeekend(), "isHoliday" => $holidays->contains($day), - "isFuture" => $day->isToday() || $day >= Carbon::now(), + "isFuture" => $day->isFuture(), "vacations" => $vacationsForDay->pluck("user_id"), "vacationTypes" => $vacationsForDay->pluck("vacationRequest.type", "user_id"), ];