mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix rendering empty avatar in web UI (#19798)
This commit is contained in:
parent
a442f481f8
commit
d1de7fb7fa
@ -54,7 +54,7 @@ export default class Avatar extends React.PureComponent {
|
||||
|
||||
return (
|
||||
<div className={classNames('account__avatar', { 'account__avatar-inline': inline })} onMouseEnter={this.handleMouseEnter} onMouseLeave={this.handleMouseLeave} style={style}>
|
||||
<img src={src} alt={account?.get('acct')} />
|
||||
{src && <img src={src} alt={account?.get('acct')} />}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user