diff --git a/webapp/src/hooks/useShipping.tsx b/webapp/src/hooks/useShipping.tsx index f6d049c..2ca1ad2 100644 --- a/webapp/src/hooks/useShipping.tsx +++ b/webapp/src/hooks/useShipping.tsx @@ -18,10 +18,10 @@ export const useShipping = (address: string) => { distance: 0.0, price: 0.0, }) - const apiEndPoint = process.env.REACT_APP_API_URI; + useEffect(() => { if(address.length !== 0) { - axios.post(apiEndPoint + "/geocode", parseAddress(address)) + axios.post("https://restapi.dededeals.es:5000/geocode", parseAddress(address)) .then(res => { setShipping({ distance: res.data.distance,