mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 09:28:25 -04:00
Make one-off error refer to correct message type
This was hard coded to say ‘You can’t send to this phone number’ even when you were trying to send an email.
This commit is contained in:
@@ -12,7 +12,9 @@
|
||||
{% call banner_wrapper(type='dangerous') %}
|
||||
{% with
|
||||
count_of_recipients=1,
|
||||
template_type_label='phone number'
|
||||
template_type_label=(
|
||||
'phone number' if template.template_type == 'sms' else 'email address'
|
||||
)
|
||||
%}
|
||||
{% include "partials/check/not-allowed-to-send-to.html" %}
|
||||
{% endwith %}
|
||||
|
||||
Reference in New Issue
Block a user