Skip to content

Commit

Permalink
Podium - fix average
Browse files Browse the repository at this point in the history
  • Loading branch information
kgaut committed Jun 6, 2019
1 parent 8e4b97e commit b60d543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Plugin/Block/PodiumBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function build() {
'position' => $ranking->getPosition(),
'points' => $ranking->getPoints(),
'bets' => $ranking->getGameBetted(),
'average' => number_format($ranking->getPoints() / $ranking->getGameBetted(),3),
'average' => number_format($ranking->getPoints() / $ranking->getGameBetted(),2),
'url' => $better->url(),
];
}
Expand Down
2 changes: 1 addition & 1 deletion templates/podium.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div class="flex">
<p class="bet-left cap"><label class="">{{ 'Points' | t }}</label><span class="em bold green">{{ first.points }}</span></p>
<p class="points cap"><label class="">{{ 'Bets' | t }}</label><span class="em bold green">{{ first.bets }}</span></p>
<p class="ranking cap"><label class="">{{ 'Average' | t }}</label><span class="bold em green"><span class="green">{{ first.bets }}</span></span></p>
<p class="ranking cap"><label class="">{{ 'Average' | t }}</label><span class="bold em green"><span class="green">{{ first.average }}</span></span></p>
</div>
</footer>
</div>
Expand Down

0 comments on commit b60d543

Please sign in to comment.