Fix loc filter clearing

This commit is contained in:
MartinBraquet
2025-10-19 11:11:51 +02:00
parent b23b0280cd
commit 97bac4132c

View File

@@ -65,6 +65,8 @@ export const useFilters = (you: Profile | undefined) => {
useEffect(() => {
if (location?.lat && location?.lon) {
updateFilter({lat: location.lat, lon: location.lon, radius: radius})
} else {
updateFilter({lat: undefined, lon: undefined, radius: undefined})
}
}, [location?.id, radius]);