diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-11-05 21:18:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-05 21:18:57 +0100 |
commit | d1de7fb7fa561a76c30f3b1f60b82856443ed4b3 (patch) | |
tree | 812bc22fe6ad3e89f0cd26cc346e665e1a1af8d3 | |
parent | a442f481f850d857544eafdd0725142ed8656552 (diff) |
Fix rendering empty avatar in web UI (#19798)
-rw-r--r-- | app/javascript/mastodon/components/avatar.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/avatar.js b/app/javascript/mastodon/components/avatar.js index 207b26691..e617c2889 100644 --- a/app/javascript/mastodon/components/avatar.js +++ b/app/javascript/mastodon/components/avatar.js @@ -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> ); } |