mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-28 12:58:48 +00:00
handle more edge cases when showing fallback image
This commit is contained in:
parent
661c628cef
commit
7b4e38405a
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ const Image = ({ className, src, alt, fallbackSrc, renderFallback }) => {
|
|||
return (
|
||||
<div className={className}>
|
||||
{
|
||||
broken && (typeof renderFallback === 'function' || typeof fallbackSrc === 'string') ?
|
||||
(broken || typeof src !== 'string' || src.length === 0) && (typeof renderFallback === 'function' || typeof fallbackSrc === 'string') ?
|
||||
typeof renderFallback === 'function' ?
|
||||
renderFallback()
|
||||
:
|
||||
|
|
|
|||
Loading…
Reference in a new issue