diff --git a/client/src/pages/sites.tsx b/client/src/pages/sites.tsx index 4f0985a..6348ee4 100644 --- a/client/src/pages/sites.tsx +++ b/client/src/pages/sites.tsx @@ -144,11 +144,12 @@ export default function Sites() { setIsGeocoding(true); try { - const result: any = await apiRequest( + const response = await apiRequest( "POST", "/api/geocode", { address } ); + const result = await response.json(); form.setValue("latitude", result.latitude); form.setValue("longitude", result.longitude); @@ -181,11 +182,12 @@ export default function Sites() { setIsGeocodingEdit(true); try { - const result: any = await apiRequest( + const response = await apiRequest( "POST", "/api/geocode", { address } ); + const result = await response.json(); editForm.setValue("latitude", result.latitude); editForm.setValue("longitude", result.longitude);