From aff584b933ec840e1f7d1f951767cfb85ca7b27c Mon Sep 17 00:00:00 2001 From: Tom Byers Date: Fri, 28 Aug 2020 13:07:38 +0100 Subject: [PATCH] Fix comparison in api_key component We can't control the case of either 'name' or 'thing' so the comparison should make them both the same. --- app/templates/components/api-key.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/templates/components/api-key.html b/app/templates/components/api-key.html index 57df093a9..bc432b452 100644 --- a/app/templates/components/api-key.html +++ b/app/templates/components/api-key.html @@ -1,12 +1,12 @@ {% macro api_key(key, name, thing="API key") %} - {% if name == thing %} + {% if name|lower == thing|lower %}

{{ name }}

{% endif %}
- {% if name != thing %}{{ thing }}: {% endif %}{{ key }} + {% if name|lower != thing|lower %}{{ thing }}: {% endif %}{{ key }}