fix search, clean up logging

This commit is contained in:
Will Freeman committed 2024-10-13 16:15:00 -05:00
1 parent fb2f1c397a
commit 837e1b7322
3 files changed
+40 -34

No files matched your search

-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) {