{% macro api_key(key, name, thing="API key") %}
  {% if name == thing %}
    <h2 class="api-key__name">
      {{ name }}
    </h2>
  {% endif %}
  <div data-module="api-key" data-key="{{ key }}" data-thing="{{ thing }}" data-name="{{ name }}">
    <span class="api-key__key">
      {% if name != thing %}<span class="govuk-visually-hidden">{{ thing }}: </span>{% endif %}{{ key }}
    </span>
    <span class="api-key__notice" aria-live="assertive"></span>
  </div>
{% endmacro %}

{% macro api_key(key, name, thing="API key") %}
  {% if name|lower == thing|lower %}
    <h2 class="api-key__name">
      {{ name }}
    </h2>
  {% endif %}
  <div data-module="api-key" data-key="{{ key }}" data-thing="{{ thing }}" data-name="{{ name }}">
    <span class="api-key__key">
      {% if name|lower != thing|lower %}<span class="govuk-visually-hidden">{{ thing }}: </span>{% endif %}{{ key }}
    </span>
    <span class="api-key__notice" aria-live="assertive"></span>
  </div>
{% endmacro %}

Fix comparison in api_key component
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.
