FIX: blank avatar on user card if flair url is undefined (#12791)

If creating a group avatar flair with no icon or image, the user card
was showing a blank circle.
This commit is contained in:
Neil Lalonde 2021-04-21 15:43:50 -04:00 committed by GitHub
parent 27771ad189
commit f186ff99c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -15,7 +15,10 @@ export default MountWidget.extend({
return;
}
if (this.user.primary_group_flair_url) {
if (
this.user.primary_group_flair_url ||
this.user.primary_group_flair_bg_color
) {
return {
primary_group_flair_url: this.user.primary_group_flair_url,
primary_group_flair_bg_color: this.user.primary_group_flair_bg_color,