Skip to content

Firefly III: a personal finances manager

Should fix a bug in Travis.

James Cole030d241130d2
diff --git a/resources/views/reports/partials/balance.twig b/resources/views/reports/partials/balance.twig
index 1643123c82..54cc50ed30 100644
--- a/resources/views/reports/partials/balance.twig
+++ b/resources/views/reports/partials/balance.twig
@@ -27,7 +27,11 @@
<a href="{{ route('budgets.show',balanceLine.getBudget.id) }}">{{ balanceLine.getTitle }}</a>
</td>
<td>
- {{ balanceLine.getBudget.amount|formatAmount }}
+ {% if(balanceLine.getBudget.amount) %}
+ {{ balanceLine.getBudget.amount|formatAmount }}
+ {% else %}
+ {{ '0'|formatAmount }}
+ {% endif %}
</td>
{% else %}
<td colspan="2">{{ balanceLine.getTitle }}</td>