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 %}
{% set skipLink = usaSkipLink({
"href": '#main-content',
"text": 'Skip to main content'
}) %}
{% if errors %}
<div>
{{ usaSkipLink({
"href": '#main-content',
"text": 'Skip to main content'
}) }}
</div>
<div>{{ skipLink }}</div>
{% else %}
{{ usaSkipLink({
"href": '#main-content',
"text": 'Skip to main content'
}) }}
{{ skipLink }}
{% endif %}
{% endblock %}