Skip to content

Commit

Permalink
fix site review
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine chabreuil committed Aug 1, 2023
1 parent 7101d42 commit 71f56a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hook/FrontHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function displaySiteWidget(HookRenderEvent $event)
if ($siteReviews->count() !== 0) {
$siteRate = 0;
foreach ($siteReviews as $siteReview) {
$siteRate += $siteReview->getRate();
$siteRate += $siteReview->getRating();
}
$siteRate /= $siteReviews->count();
}
Expand Down

0 comments on commit 71f56a6

Please # to comment.