Don't show background if the user upload its avatar
parent
1586115771
commit
471b9571c6
|
@ -28,8 +28,7 @@ AvatarDirective = (avatarService) ->
|
|||
avatar = avatarService.getAvatar(user, attributeName)
|
||||
|
||||
el.attr('src', avatar.url)
|
||||
if avatar.bg
|
||||
el.css('background', avatar.bg)
|
||||
el.css('background', avatar.bg or "")
|
||||
|
||||
return {
|
||||
link: link
|
||||
|
|
Loading…
Reference in New Issue