From 60f694778c8bdd58379921a910395b927b0fc96a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20Britos=20Morales?= Date: Tue, 3 May 2022 16:16:33 +0200 Subject: [PATCH] fixing restapi url in shipping --- webapp/src/hooks/useShipping.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,