From 3d4af0ec5f414ece96f0672a64f167b1b6d37d22 Mon Sep 17 00:00:00 2001 From: CANCI0 Date: Mon, 8 Apr 2024 00:14:39 +0200 Subject: [PATCH] Bateria fix --- webapp/src/pages/Bateria/Bateria.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/src/pages/Bateria/Bateria.js b/webapp/src/pages/Bateria/Bateria.js index d8dadaca..443613c2 100644 --- a/webapp/src/pages/Bateria/Bateria.js +++ b/webapp/src/pages/Bateria/Bateria.js @@ -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);