small fix
This commit is contained in:
parent
e012d9d337
commit
5c03141532
|
@ -2,7 +2,7 @@
|
|||
<div class="ticket-response-meta">
|
||||
<div class="ticket-response-author">
|
||||
<% 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
|
||||
|
|
Loading…
Reference in New Issue