Skip to content

Commit

Permalink
fixed header new_apps issues..
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Jun 20, 2021
1 parent 62bb74d commit 2bb846d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Http/ViewComposers/Header.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ public function compose(View $view)

$new_apps = $this->getNotifications('new-apps');

foreach ($new_apps as $new_app) {
$notifications++;
if ($new_apps) {
foreach ($new_apps as $new_app) {
$notifications++;
}
}
}

Expand Down

0 comments on commit 2bb846d

Please sign in to comment.