diff --git a/app/views/admin/tickets/_response.html.erb b/app/views/admin/tickets/_response.html.erb index 6e260de..1513573 100644 --- a/app/views/admin/tickets/_response.html.erb +++ b/app/views/admin/tickets/_response.html.erb @@ -2,7 +2,7 @@
<% user = User.find(response.response_by) rescue nil %> - <% if user.member_profile.avatar.nil? || user.member_profile.avatar.thumb.url == "thumb_person.png" + <% if user.nil? || user.member_profile.avatar.nil? || user.member_profile.avatar.thumb.url == "thumb_person.png" avatar = "/assets/thumb_person.png" else avatar = user.member_profile.avatar.thumb.url