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 %}