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()}