diff --git a/app/views/auth/registrations/edit.html.haml b/app/views/auth/registrations/edit.html.haml index f06410b37c..f5ef4e97e4 100644 --- a/app/views/auth/registrations/edit.html.haml +++ b/app/views/auth/registrations/edit.html.haml @@ -3,7 +3,7 @@ - if self_destruct? .flash-message.warning - = t('auth.status.self_destruct', domain: ENV['LOCAL_DOMAIN']) + = t('auth.status.self_destruct', domain: ENV.fetch('LOCAL_DOMAIN')) - else = render partial: 'status', locals: { user: @user, strikes: @strikes } diff --git a/app/views/errors/self_destruct.html.haml b/app/views/errors/self_destruct.html.haml index dc58f1c135..09b17a5a94 100644 --- a/app/views/errors/self_destruct.html.haml +++ b/app/views/errors/self_destruct.html.haml @@ -3,7 +3,7 @@ .simple_form %h1.title= t('self_destruct.title') - %p.lead= t('self_destruct.lead_html', domain: ENV['LOCAL_DOMAIN']) + %p.lead= t('self_destruct.lead_html', domain: ENV.fetch('LOCAL_DOMAIN')) .form-footer %ul.no-list