mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-05-18 21:35:46 -04:00
Closes #640
This commit is contained in:
@@ -49,8 +49,6 @@ const useCurrentObservationLocation = ( mountedRef: any ): Object => {
|
||||
if ( !mountedRef.current ) return;
|
||||
if ( !shouldFetchLocation ) return;
|
||||
|
||||
setFetchingLocation( false );
|
||||
|
||||
const location = await fetchUserLocation( );
|
||||
|
||||
// If we're still receiving location updates and location is blank,
|
||||
@@ -63,6 +61,8 @@ const useCurrentObservationLocation = ( mountedRef: any ): Object => {
|
||||
positional_accuracy: location?.positional_accuracy
|
||||
} );
|
||||
|
||||
setFetchingLocation( false );
|
||||
|
||||
// The local state version of positionalAccuracy needs to be a number,
|
||||
// so don't set it to
|
||||
const newPositionalAccuracy = location?.positional_accuracy || INITIAL_POSITIONAL_ACCURACY;
|
||||
|
||||
Reference in New Issue
Block a user