Skip to content
Snippets Groups Projects
Unverified Commit d1de7fb7 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix rendering empty avatar in web UI (#19798)

parent a442f481
No related branches found
No related tags found
No related merge requests found
......@@ -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>
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment