fix linting

This commit is contained in:
Anton Tranelis 2025-10-10 20:45:10 +02:00
parent 1147673fad
commit 6408941844
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ export const useGeoDistance = (targetPoint?: Point) => {
if (err instanceof Error) {
setError(err.message)
} else {
setError('Calculation error')
throw err
}
}
}, [myProfile, isMyProfileLoaded, targetPoint])

View File

@ -92,10 +92,10 @@ export function useReverseGeocode(
} catch (err) {
if (err instanceof Error) {
setError(err.message)
setAddress('')
} else {
setError('Unknown error occurred')
throw err
}
setAddress('')
} finally {
setLoading(false)
}