diff --git a/src/ArtDetails.js b/src/ArtDetails.js index b3e3454..5f99b04 100644 --- a/src/ArtDetails.js +++ b/src/ArtDetails.js @@ -24,7 +24,7 @@ export default function ArtDetails(props) { }, [showLoader]); useEffect(() => { - if (mediaResult.length < 0) { + if (mediaResultstr.length === 0) { loadNewMedia(meta.media); } }, []);