correct usage of and

This commit is contained in:
byte[] 2019-11-11 12:30:36 -05:00
parent 9679897930
commit 0f75c973aa

View file

@ -19,7 +19,7 @@ defmodule PhilomenaWeb.UserAttributionView do
def user_avatar(object, class \\ "avatar--100px") do def user_avatar(object, class \\ "avatar--100px") do
user = object.user user = object.user
if user and user.avatar do if user && user.avatar do
img_tag(avatar_url_root() <> object.user.avatar, class: class) img_tag(avatar_url_root() <> object.user.avatar, class: class)
else else
anonymous_avatar(object, class) anonymous_avatar(object, class)