Skip to content

Commit

Permalink
fix: use 2 decimal places for price on the calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Ribeiro committed Jul 29, 2024
1 parent 713f09b commit 996baed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions endpoints/subscription/getcalendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
$subscription['category'] = $categories[$subscription['category_id']]['name'];
$subscription['payment_method'] = $payment_methods[$subscription['payment_method_id']]['name'];
$subscription['currency'] = $currencies[$subscription['currency_id']]['symbol'];
$subscription['price'] = number_format($subscription['price'], 2);

echo json_encode([
'success' => true,
Expand Down

0 comments on commit 996baed

Please sign in to comment.