refactor a bit

This commit is contained in:
Beverly Nguyen
2024-12-10 12:21:01 -08:00
parent 27abdc635e
commit 1f3d202a0d

View File

@@ -14,18 +14,14 @@
{% block skipLink %} {% block skipLink %}
{% set skipLink = usaSkipLink({
"href": '#main-content',
"text": 'Skip to main content'
}) %}
{% if errors %} {% if errors %}
<div> <div>{{ skipLink }}</div>
{{ usaSkipLink({
"href": '#main-content',
"text": 'Skip to main content'
}) }}
</div>
{% else %} {% else %}
{{ usaSkipLink({ {{ skipLink }}
"href": '#main-content',
"text": 'Skip to main content'
}) }}
{% endif %} {% endif %}
{% endblock %} {% endblock %}