Skip to content

Commit

Permalink
Merge pull request #78 from realtimeregister/format-currency-widget
Browse files Browse the repository at this point in the history
Balance was displayed in cents and not divided before displaying in t…
  • Loading branch information
PJEilers authored Jan 29, 2025
2 parents e5cecc2 + f308047 commit d67be13
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function generateOutput($data): string
foreach ($data as $item) {
$content .= "<div class='col-sm-6'>
<div class='item'>
<div class='data'>" . number_format($item->balance) . "</div>
<div class='data'>" . formatCurrency($item->balance / 100)->toNumeric() . "</div>
<div class='note'>" . $item->currency . "</div>
</div>
</div>";
Expand Down

0 comments on commit d67be13

Please sign in to comment.