Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Johnny <yourselfhosted@gmail.com>
pull/5122/head
Johnny 6 days ago committed by GitHub
parent 83ccc30554
commit e3fe6ec6d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -104,7 +104,7 @@ const LocationSelector = (props: Props) => {
rateLimit.current.nominatimTimeoutId = setTimeout(() => {
updateReverseGeocoding();
rateLimit.current.lastNominatimFetch = new Date();
}, timeLeft);
}, Math.max(0, timeLeft));
}, [state.position]);
const onPositionChanged = (position: LatLng) => {

Loading…
Cancel
Save