Skip to content

Commit 7e2607b

Browse files
committed
remove error for charities without finances - fixes issue #112
1 parent c395553 commit 7e2607b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ngo_explorer/templates/charity.html.j2

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
{% endif %}
4040
</div>
4141
</div>
42+
{% if data.finances %}
4243
<div class="w-100 w-third-l pr2 fl">
4344
<h3 class="korolev lh-title ma0">{% trans %}Finances{% endtrans %}</h3>
4445
{% if data.finances[0].income %}
@@ -47,7 +48,6 @@
4748
<span class="f6 gray">({{ "{:%B %Y}".format(data.finances[0].financialYear.end) }})</span>
4849
</p>
4950
{% endif %}
50-
{% if data.finances %}
5151
<h4 class="b korolev">{% trans %}Income and spending over time:{% endtrans %}</h4>
5252
<div id="chart_finances" class="h5 h6-ns"></div>
5353
{# <table>
@@ -73,8 +73,8 @@
7373
<a href="https://www.ons.gov.uk/economy/inflationandpriceindices/timeseries/l522/mm23" target="_blank" class="link blue external-link">consumer price inflation (CPIH)</a>
7474
measure published by the Office for National Statistics.{% endtrans %}
7575
</p>
76-
{% endif %}
7776
</div>
77+
{% endif %}
7878
<div class="w-100 w-third-l ph2 fl">
7979
<h3 class="korolev lh-title ma0">{% trans %}Where this organisation works{% endtrans %}</h3>
8080
{% if data.countries|length > 0 %}

0 commit comments

Comments
 (0)