Skip to content

Commit

Permalink
Arreglado pequeño error con las URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
CANCI0 committed Apr 2, 2024
1 parent 97f0661 commit 5732731
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion webapp/src/pages/Perfil/Perfil.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Nav from "../../components/Nav/Nav.js";
import Footer from "../../components/Footer/Footer.js";

const Perfil = () => {
const gatewayUrl = process.env.GATEWAY_SERVICE_URL || "http://localhost:8000";
const gatewayUrl = process.env.REACT_APP_API_ENDPOINT || "http://localhost:8000";
const username = localStorage.username || 'error';
const [userData, setUserData] = useState(null);
const [loading, setLoading] = useState(true);
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/pages/Ranking/Ranking.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Nav from "../../components/Nav/Nav.js";
import Footer from "../../components/Footer/Footer.js";

const Ranking = () => {
const gatewayUrl = process.env.GATEWAY_SERVICE_URL || "http://localhost:8000";
const gatewayUrl = process.env.REACT_APP_API_ENDPOINT || "http://localhost:8000";

const [ranking, setRanking] = useState([]);
const [filterBy, setFilterBy] = useState("avgPoints");
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/pages/Stats/Stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Nav from "../../components/Nav/Nav.js";
import Footer from "../../components/Footer/Footer.js";

const Stats = () => {
const gatewayUrl = process.env.GATEWAY_SERVICE_URL || "http://localhost:8000";
const gatewayUrl = process.env.REACT_APP_API_ENDPOINT || "http://localhost:8000";

const [username, setUsername] = useState(localStorage.username || "error");
const [stats, setStats] = useState(null);
Expand Down

0 comments on commit 5732731

Please sign in to comment.