mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix zero division.
This commit is contained in:
parent
2c4920db2d
commit
b0988a7b00
@ -70,7 +70,7 @@
|
||||
{% set overspent = spentInRep > rep.amount %}
|
||||
|
||||
{% if overspent %}
|
||||
{% set pct = (spentInRep != 0 ? (rep.amount / spent)*100 : 0) %}
|
||||
{% set pct = (spentInRep != 0 ? (rep.amount / spentInRep)*100 : 0) %}
|
||||
<div class="progress progress-striped">
|
||||
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="{{ pct|round }}" aria-valuemin="0"
|
||||
aria-valuemax="100" style="width: {{ pct|round }}%;"></div>
|
||||
|
Loading…
Reference in New Issue
Block a user