mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 04:18:23 +00: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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.user.primary_group_flair_url) {
|
if (
|
||||||
|
this.user.primary_group_flair_url ||
|
||||||
|
this.user.primary_group_flair_bg_color
|
||||||
|
) {
|
||||||
return {
|
return {
|
||||||
primary_group_flair_url: this.user.primary_group_flair_url,
|
primary_group_flair_url: this.user.primary_group_flair_url,
|
||||||
primary_group_flair_bg_color: this.user.primary_group_flair_bg_color,
|
primary_group_flair_bg_color: this.user.primary_group_flair_bg_color,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user