mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-03-01 12:44:17 +00:00
fix linting
This commit is contained in:
parent
1147673fad
commit
6408941844
@ -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])
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user