mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
Merge pull request #3210 from frewsxcv/fetchPlaceName
Resolve only type error in `src/sharedHelpers/fetchPlaceName.ts`.
This commit is contained in:
@@ -44,7 +44,7 @@ const fetchPlaceName = async ( lat?: number, lng?: number ): Promise<string | nu
|
||||
const { isConnected } = await NetInfo.fetch( );
|
||||
if ( !isConnected ) { return null; }
|
||||
try {
|
||||
const timeoutPromise = new Promise( ( _, reject ) => {
|
||||
const timeoutPromise: Promise<never> = new Promise( ( _, reject ) => {
|
||||
setTimeout( ( ) => reject( new Error( TIMEOUT_ERROR_MESSAGE ) ), GEOCODER_TIMEOUT );
|
||||
} );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user