Skip to content

Commit 57a87a3

Browse files
committed
[Fix] Show only when avatar is present.
1 parent fd61044 commit 57a87a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/protips/_mini.html.haml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
%li.user
3131
=link_to profile_path(protip.user.username) do
3232
=image_tag(protip.user.avatar_url)
33-
-if protip.team.present?
33+
-if protip.team.present? && protip.team.avatar.present?
3434
%li.team
3535
=link_to teamname_path(protip.team.slug) do
36-
=image_tag(protip.team.avatar.url)
36+
=image_tag(protip.team.avatar)
3737
-if protip.team && protip.team.hiring
3838
%a.job{:href => teamname_path(protip.team.slug)}

0 commit comments

Comments
 (0)