Merge pull request #3222 from frewsxcv/react

Fix issue where component does not return `Element | null`.
This commit is contained in:
Seth Peterson
2025-11-14 09:18:18 -06:00
committed by GitHub

View File

@@ -20,7 +20,10 @@ const CurrentLocationButton = ( {
renderPermissionsGate
}: Props ) => {
const { t } = useTranslation( );
return showCurrentLocationButton && (
if ( !showCurrentLocationButton ) {
return null;
}
return (
<>
<INatIconButton
icon="location-crosshairs"