Skip to content

Commit

Permalink
Merge pull request #53 from laravelcm/stats-admin
Browse files Browse the repository at this point in the history
🐛 correction du bug sur les nombres
  • Loading branch information
mckenziearts authored Jul 13, 2022
2 parents ed937d1 + bb0b9bd commit 075064d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/Widgets/RecentNumbers.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,19 @@ public function run()
'count' => $countUsers,
'increase' => $difference > 0,
'decreased' => $difference < 0,
'current' => max($difference, 0),
'current' => $currentMonthRegistered,
],
'articles' => [
'count' => $countArticles,
'increase' => $differenceArticle > 0,
'decreased' => $differenceArticle < 0,
'current' => max($differenceArticle, 0),
'current' => $currentMonthArticles,
],
'views' => [
'count' => $totalViews,
'increase' => $difference > 0,
'decreased' => $difference < 0,
'current' => max($differenceViews, 0),
'increase' => $differenceViews > 0,
'decreased' => $differenceViews < 0,
'current' => $currentViews,
],
]);
}
Expand Down

0 comments on commit 075064d

Please sign in to comment.