Skip to content

Commit

Permalink
Merge pull request #43 from HelsinkiUniCollab/JoJoensuu-patch-1
Browse files Browse the repository at this point in the history
Update WeatherComponent.js
  • Loading branch information
JoJoensuu committed May 22, 2023
2 parents 6a8e93d + 949f20b commit 27b3454
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recommender-front/src/components/WeatherComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const WeatherComponent = () => {
airquality: null
});
useEffect(() => {
const apiUrl = process.env.REACT_APP_API_URL || "http://localhost:5000";
const apiUrl = process.env.REACT_APP_BACKEND_URL || "http://localhost:5000";
fetch(`${apiUrl}/api/weather`).then((res) =>
res.json().then((data) => {
setData({
Expand All @@ -23,4 +23,4 @@ const WeatherComponent = () => {
);
};

export default WeatherComponent;
export default WeatherComponent;

0 comments on commit 27b3454

Please sign in to comment.