diff --git a/app/views/admin/tickets/_ticket.html.erb b/app/views/admin/tickets/_ticket.html.erb index f933aa1..75e1351 100644 --- a/app/views/admin/tickets/_ticket.html.erb +++ b/app/views/admin/tickets/_ticket.html.erb @@ -35,8 +35,8 @@ <% if !ticket.taken_by.nil? %> - <% user = User.find(ticket.taken_by) %> - <%= user.name if !user.nil? %> + <% user = User.find(ticket.taken_by) rescue nil %> + <%= !user.nil? ? user.name : "User Deleted" %> <% end %>