From cc328161f65bbeabb4a4808486e8cff91391ab67 Mon Sep 17 00:00:00 2001 From: Isaac Date: Mon, 9 Jan 2023 15:51:19 +0000 Subject: [PATCH] fix: map icon --- 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 48025739..b9c40bc3 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 [useMapIcon, 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)} >
- {!usePhotoMap ? : ''} + {useMapIcon || photoMap() === null ? : ''}

{photoMap}

{photoMap()}