Use a default for empty domain name

Co-authored-by: Seamus Johnston <seamus.johnston@gsa.gov>
This commit is contained in:
Neil MartinsenBurrell 2023-02-01 13:07:13 -06:00 committed by GitHub
parent 1daf97d0d8
commit bf54a4cf8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@
<svg class="usa-icon" aria-hidden="true" focusable="false" role="img">
<use xlink:href="{%static 'img/sprite.svg'%}#edit"></use>
</svg>
Edit <span class="usa-sr-only">{{application.requested_domain.name}} </span>
Edit <span class="usa-sr-only">{{ application.requested_domain.name|default:"New domain request" }} </span>
{% else %}
<svg class="usa-icon" aria-hidden="true" focusable="false" role="img">