Fix rendering empty avatar in web UI (#19798)

main
Eugen Rochko 2 years ago committed by GitHub
parent a442f481f8
commit d1de7fb7fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save