Skip to content

Firefly III: a personal finances manager

Fix amount thing.

James Cole2c4920db2dd1
diff --git a/resources/twig/budgets/show.twig b/resources/twig/budgets/show.twig
index fe73f71354..92312c715b 100644
--- a/resources/twig/budgets/show.twig
+++ b/resources/twig/budgets/show.twig
@@ -79,7 +79,7 @@
</div>
{% else %}
{% set amount = rep.amount %}
- {% set pct = (amount != 0 ? spentInRep / amount)*100 : 0) %}
+ {% set pct = (amount != 0 ? ((spentInRep / amount)*100) : 0) %}
<div class="progress progress-striped">
<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="{{ pct|round }}" aria-valuemin="0"
aria-valuemax="100" style="width: {{ pct|round }}%;"></div>