Fix rendering empty avatar in web UI (#19798)

lolsob-rspec
Eugen Rochko 2022-11-05 21:18:57 +01:00 committed by GitHub
parent 8742e0000e
commit 90902371b0
1 changed files with 1 additions and 1 deletions

View File

@ -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>
); );
} }