mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-04-06 01:25:33 +00:00
Update lib/src/Components/Map/hooks/useGeoDistance.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
18468d10e6
commit
5ed20eebbf
@ -45,7 +45,6 @@ export const useGeoDistance = (targetPoint?: Point) => {
|
|||||||
setDistance(dist)
|
setDistance(dist)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
setError('Calculation error')
|
setError('Calculation error')
|
||||||
throw err
|
|
||||||
}
|
}
|
||||||
}, [myProfile, isMyProfileLoaded, targetPoint])
|
}, [myProfile, isMyProfileLoaded, targetPoint])
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user