From 25c7218f1bb9f95b4904448421538eebc049d355 Mon Sep 17 00:00:00 2001 From: Isaac Date: Sun, 8 Jan 2023 22:05:32 +0000 Subject: [PATCH] fix: hide map icon after map image load --- src/components/widgets/background/PhotoInformation.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/widgets/background/PhotoInformation.jsx b/src/components/widgets/background/PhotoInformation.jsx index 6354e4b2..48025739 100644 --- a/src/components/widgets/background/PhotoInformation.jsx +++ b/src/components/widgets/background/PhotoInformation.jsx @@ -55,7 +55,7 @@ function PhotoInformation({ info, url, api }) { const [width, setWidth] = useState(0); const [height, setHeight] = useState(0); const [usePhotoMap, setPhotoMap] = useState(false); - const [setMapIcon] = useState(true); + const [, setMapIcon] = useState(true); const [showExtraInfo, setshowExtraInfo] = useState(false); //const [showOld, setShowOld] = useState(true); const [other, setOther] = useState(false); @@ -210,7 +210,7 @@ function PhotoInformation({ info, url, api }) { onMouseLeave={() => setshowExtraInfo(false)} >
- {photoMap !== null ? : ''} + {!usePhotoMap ? : ''}

{photoMap}

{photoMap()}