diff --git a/src/purchase/templates/purchase/reports.html b/src/purchase/templates/purchase/reports.html
index 1835e8b..9e17779 100644
--- a/src/purchase/templates/purchase/reports.html
+++ b/src/purchase/templates/purchase/reports.html
@@ -17,8 +17,10 @@
{% translate "By day" %}
{% include "purchase/snippets/by_day_table.html" %}
- {% translate "By hour" %} {{ date }}
- {% include "purchase/snippets/htmx_plot.html" with url='purchase:by_hour_plot' %}
+ {% if date %}
+ {% translate "By hour" %} {{ date }}
+ {% include "purchase/snippets/htmx_plot.html" with url='purchase:by_hour_plot' %}
+ {% endif %}
{% translate "Products" %} {{ date }}
{% include "purchase/snippets/report_products.html" %}