Skip to content

Commit

Permalink
Bateria fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CANCI0 committed Apr 7, 2024
1 parent 5e5834e commit 3d4af0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webapp/src/pages/Bateria/Bateria.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ const JuegoPreguntas = () => {
},
};

saveGame("/saveGame");
saveGame("/saveGameList");
saveGame("/saveGame", newGame);
saveGame("/saveGameList", newGame);
};

const saveGame = async (endpoint) => {
const saveGame = async (endpoint, newGame) => {
try {
const response = await axios.post(URL + endpoint, newGame);
console.log("Solicitud exitosa:", response.data);
Expand Down

0 comments on commit 3d4af0e

Please sign in to comment.