diff --git a/app/view-composers.php b/app/view-composers.php index 78bccc6c..e83a1f26 100644 --- a/app/view-composers.php +++ b/app/view-composers.php @@ -7,7 +7,7 @@ ->groupBy('status') ->orderBy('status', 'desc'); - if ($incidents->count() === 0 || (int) $incidents->first()->status === 4) { + if ($incidents->get()->count() === 1 || (int) $incidents->first()->status === 4) { $status = 'success'; $message = 'All systems are functional.'; } else {