Display default image for channel thumbnail on error
This commit is contained in:
parent
b27395607c
commit
77d90b807e
1 changed files with 2 additions and 1 deletions
|
@ -72,7 +72,8 @@ function ChannelThumbnail(props: Props) {
|
|||
<img
|
||||
alt={__('Channel profile picture')}
|
||||
className="channel-thumbnail__default"
|
||||
src={thumbnailPreview || Gerbil}
|
||||
src={!thumbError && thumbnailPreview ? thumbnailPreview : Gerbil}
|
||||
onError={() => setThumbError(true)} // if thumb fails (including due to https replace, show gerbil.
|
||||
/>
|
||||
)}
|
||||
{showThumb && (
|
||||
|
|
Loading…
Reference in a new issue