diff --git a/app/helpers/tab_nav_helper.rb b/app/helpers/tab_nav_helper.rb index 1e9ae7b42..c29ae5d86 100644 --- a/app/helpers/tab_nav_helper.rb +++ b/app/helpers/tab_nav_helper.rb @@ -3,8 +3,7 @@ module TabNavHelper def user_cell(user) link_text = user.name.presence || user.email - link = govuk_link_to(link_text, user) - [link, "User #{user.email}"].join("\n") + [govuk_link_to(link_text, user), "User #{user.email}"].join("\n") end def location_cell_postcode(location, link)