Skip to content

Commit

Permalink
fixing restapi url in shipping
Browse files Browse the repository at this point in the history
  • Loading branch information
jbritosm committed May 3, 2022
1 parent db3f586 commit 60f6947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/src/hooks/useShipping.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 60f6947

Please sign in to comment.