don't try to render flair if there's no primary group

This commit is contained in:
Neil Lalonde 2016-09-15 16:26:58 -04:00
parent e3e15182df
commit d0ebde9d84

View File

@ -3,7 +3,9 @@
<div class="user-card-avatar">
<a href={{user.path}} {{action "showUser"}} class="card-huge-avatar">{{bound-avatar avatar "huge"}}</a>
{{mount-widget widget="avatar-flair" args=user}}
{{#if user.primary_group_name}}
{{mount-widget widget="avatar-flair" args=user}}
{{/if}}
</div>
<div class="names">