fix search, clean up logging

This commit is contained in:
Will Freeman
2024-10-13 16:15:00 -05:00
parent fb2f1c397a
commit 837e1b7322
3 changed files with 40 additions and 34 deletions
-1
View File
@@ -60,7 +60,6 @@ export const geocodeQuery = async (query: string, currentLocation: any) => {
const results = (await apiService.get(`/geocode?query=${encodedQuery}`)).data;
function findNearestResult(results: any, currentLocation: any) {
console.log(currentLocation, results);
let nearestResult = results[0];
let nearestDistance = Number.MAX_VALUE;
for (const result of results) {