Skip to content

Commit

Permalink
Merge pull request #180 from Arquisoft/secret-hotfix
Browse files Browse the repository at this point in the history
process.env.REACT_APP_API_URI set again on other files
  • Loading branch information
jbritosm authored May 3, 2022
2 parents 9d3baaf + ed24bec commit eb30363
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webapp/src/components/checkout/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Form = (props: Props) => {

useEffect(() => {
if(session.info.webId) {
axios.get((process.env.RESTAPI_URI || "http://localhost:5000") + "/solid/fetch/" + encrypt(session.info.webId)).then(
axios.get((process.env.REACT_APP_API_URI || "http://localhost:5000") + "/solid/fetch/" + encrypt(session.info.webId)).then(
response => {
localStorage.setItem("fn", response.data.fn)
setContactData(response.data.addresses)
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/hooks/useShipping.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const useShipping = (address: string) => {

useEffect(() => {
if(address.length !== 0) {
axios.post((process.env.RESTAPI_URI || "http://localhost:5000") + "/geocode", parseAddress(address))
axios.post((process.env.REACT_APP_API_URI || "http://localhost:5000") + "/geocode", parseAddress(address))
.then(res => {
setShipping({
distance: res.data.distance,
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/pages/Checkout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Checkout = () => {
})

useEffect(() => {
axios.post((process.env.RESTAPI_URI || "http://localhost:5000") + "/geocode",
axios.post((process.env.REACT_APP_API_URI || "http://localhost:5000") + "/geocode",
{
"street": address[3],
"city": address[2],
Expand Down

0 comments on commit eb30363

Please sign in to comment.