From 02fd6dbbe6ff039be9e5c33ac88374aab07543a6 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 1 Oct 2024 10:42:31 +0100 Subject: [PATCH] Bug fix train_row macro --- templates/macros.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/macros.html b/templates/macros.html index a01925b..a60c614 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -226,7 +226,7 @@
{% if g.user.is_authenticated and item.price and item.currency %} {{ "{:,f}".format(item.price) }} {{ item.currency }} - {% if item.currency != "GBP" %} + {% if item.currency != "GBP" and item.currency in fx_rate %} {{ "{:,.2f}".format(item.price / fx_rate[item.currency]) }} GBP {% endif %} {% endif %}