Skip to content

Commit c856b48

Browse files
committed
Fix bug in finance_dashboard.
1 parent be7ff68 commit c856b48

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

hypha/apply/dashboard/templates/dashboard/contracting_dashboard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h2 class="section-header" id="paf-for-review">
4141
</section>
4242

4343

44-
{% if projects_in_contracting.count %}
44+
{% if PROJECTS_ENABLED and projects_in_contracting.count %}
4545
{% include "dashboard/includes/projects_in_contracting.html" with projects_in_contracting=projects_in_contracting %}
4646
{% endif %}
4747
</div>

hypha/apply/dashboard/templates/dashboard/finance_dashboard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ <h2 class="section-header">{% trans 'Invoices' %} </h2>
9292
<section id="paf_for_review">
9393
<h2 class="section-header">{% trans "PAFs for review" %}</h2>
9494
<div class="overflow-x-auto border rounded-box">
95-
{% if not paf_for_review.count %}
95+
{% if PROJECTS_ENABLED and paf_for_review.count %}
9696
{% render_table paf_for_review.table %}
9797
{% else %}
9898
<p class="p-4 text-sm text-fg-muted">

0 commit comments

Comments
 (0)