mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
Merge pull request #3222 from frewsxcv/react
Fix issue where component does not return `Element | null`.
This commit is contained in:
@@ -20,7 +20,10 @@ const CurrentLocationButton = ( {
|
||||
renderPermissionsGate
|
||||
}: Props ) => {
|
||||
const { t } = useTranslation( );
|
||||
return showCurrentLocationButton && (
|
||||
if ( !showCurrentLocationButton ) {
|
||||
return null;
|
||||
}
|
||||
return (
|
||||
<>
|
||||
<INatIconButton
|
||||
icon="location-crosshairs"
|
||||
|
||||
Reference in New Issue
Block a user