diff --git a/app/views/profiles/chat_names/index.html.haml b/app/views/profiles/chat_names/index.html.haml
index 6d8d606583d9d16aecea93cbd4a27169ed333faa..a8dd258732fd5ed96fe9ca3cf1cafbf078aed610 100644
--- a/app/views/profiles/chat_names/index.html.haml
+++ b/app/views/profiles/chat_names/index.html.haml
@@ -38,7 +38,7 @@
                     - if can?(current_user, :admin_project, project)
                       = link_to service.title, edit_namespace_project_service_path(project.namespace, project, service)
                     - else
-                      = chat_name.service.title
+                      = service.title
                 %td
                   = chat_name.team_domain
                 %td
diff --git a/spec/services/chat_names/authorize_user_service_spec.rb b/spec/services/chat_names/authorize_user_service_spec.rb
index 2ecee58e92dd7b6f5c81b69e28e5e6e289169a79..d50bfb0492cd09e0761b76dec08bd59d94d5b3b7 100644
--- a/spec/services/chat_names/authorize_user_service_spec.rb
+++ b/spec/services/chat_names/authorize_user_service_spec.rb
@@ -15,7 +15,7 @@ describe ChatNames::AuthorizeUserService, services: true do
     end
 
     context 'when there are missing parameters' do
-      let(:params) { { } }
+      let(:params) { {} }
 
       it 'does not request a new token' do
         is_expected.to be_nil