diff --git a/app/views/response/response.html.erb b/app/views/response/response.html.erb index 344397a8bd7..9e3c7675d29 100644 --- a/app/views/response/response.html.erb +++ b/app/views/response/response.html.erb @@ -301,7 +301,7 @@ <% if @map.assignment.team_assignment? %> <% team_member = TeamsUser.find_by_team_id(@map.contributor).user_id%> - <% participant = Participant.find(team_member) %> + <% participant = Participant.find_by(user_id: team_member) %>
<%= link_to "Email the author", author_response_index_path(email: participant.user.email, response: @response.id) %>