mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
parent
27771ad189
commit
f186ff99c8
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user