Fix rendering empty avatar in web UI (#19798)

th-downstream
Eugen Rochko 2 years ago committed by GitHub
parent 8742e0000e
commit 90902371b0

@ -54,7 +54,7 @@ export default class Avatar extends React.PureComponent {
return ( return (
<div className={classNames('account__avatar', { 'account__avatar-inline': inline })} onMouseEnter={this.handleMouseEnter} onMouseLeave={this.handleMouseLeave} style={style}> <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> </div>
); );
} }

Loading…
Cancel
Save