Fix/898: Avatar images now only displaying if avatarUrl is valid (#899)

This commit is contained in:
Sam Keen 2022-07-28 14:43:17 +01:00 committed by GitHub
parent 11be7aaa8a
commit 70aae5003d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,6 +66,7 @@ const ValidatorRenderer = ({ data }: ValidatorRendererProps) => {
className="h-24 w-24 rounded-full mr-8"
src={avatarUrl}
alt={`Avatar icon for ${name}`}
onError={(e) => (e.currentTarget.style.display = 'none')}
/>
)}
{name}