Skip to content

Firefly III: a personal finances manager

Fix for #980

James Coleb4dc70244aaf
diff --git a/resources/views/json/piggy-banks.twig b/resources/views/json/piggy-banks.twig
index 2e0e9214c0..71c9b93a5d 100644
--- a/resources/views/json/piggy-banks.twig
+++ b/resources/views/json/piggy-banks.twig
@@ -8,8 +8,9 @@
<strong>{{ entry.name }}</strong><br />
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="{{ entry.percentage }}" aria-valuemin="0" aria-valuemax="100" style="width: {{ entry.percentage }}%;">
- {{ entry.amount|formatAmountPlain }}
+ {% if entry.percentage >=20 %}{{ entry.amount|formatAmountPlain }}{% endif %}
</div>
+ {% if entry.percentage < 20 %}&nbsp;{{ entry.amount|formatAmountPlain }}{% endif %}
</div>
{% endfor %}
</div>