mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 23:12:13 +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 (
|
return (
|
||||||
<div className={className}>
|
<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' ?
|
typeof renderFallback === 'function' ?
|
||||||
renderFallback()
|
renderFallback()
|
||||||
:
|
:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue