Added an empty alt attribute to avatar's img tag (#2269)

fixes #2256
This commit is contained in:
Karan Sanjeev 2020-08-25 20:23:44 +05:30 committed by GitHub
parent 47f3ee0ce2
commit 97186e6086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ export default function avatar(user, attrs = {}) {
if (hasTitle) attrs.title = attrs.title || username;
if (avatarUrl) {
return <img {...attrs} src={avatarUrl} />;
return <img {...attrs} src={avatarUrl} alt="" />;
}
content = username.charAt(0).toUpperCase();