diff --git a/src/services/users.ts b/src/services/users.ts index ea70d95..592c173 100644 --- a/src/services/users.ts +++ b/src/services/users.ts @@ -49,7 +49,7 @@ export async function getUsersSearching(currentPoint: any) { // Replace lat/long with values from get current location. // Allow choosing of radius? // Offset could = amount loaded in an infinite scroll? - var latitude = currentPoint.latitude, longitude = currentPoint.longitude, radius = 5000, offset = 0; + var latitude = currentPoint.latitude, longitude = currentPoint.longitude, radius = 3000, offset = 0; const response = await fetch(`http://localhost:4000/get-records?latitude=${ latitude }&longitude=${ longitude }&radius=${ radius }&offset=${ offset }`); const data = await response.json(); setStore(data);