mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-04-23 08:00:43 -04:00
Fix loc filter clearing
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user