diff --git a/webapp/src/pages/Bateria/Bateria.js b/webapp/src/pages/Bateria/Bateria.js index 7c2bf93b..0852b08e 100644 --- a/webapp/src/pages/Bateria/Bateria.js +++ b/webapp/src/pages/Bateria/Bateria.js @@ -132,7 +132,7 @@ const JuegoPreguntas = () => { const saveGame = async (endpoint, newGame) => { try { - const response = await axios.post(URL + endpoint, newGame); + await axios.post(URL + endpoint, newGame); } catch (error) { console.error("Error al guardar el juego:", error); } diff --git a/webapp/src/pages/Calculadora/Calculadora.js b/webapp/src/pages/Calculadora/Calculadora.js index 6a030e8d..dbccd2e6 100644 --- a/webapp/src/pages/Calculadora/Calculadora.js +++ b/webapp/src/pages/Calculadora/Calculadora.js @@ -100,13 +100,12 @@ const CalculadoraHumana = () => { } }; try { - const response = await axios.post(URL + '/saveGame', newGame); - + await axios.post(URL + '/saveGame', newGame); } catch (error) { console.error('Error al guardar el juego:', error); } try { - const response = await axios.post(URL + "/saveGameList", newGame); + await axios.post(URL + "/saveGameList", newGame); } catch (error) { console.error("Error al guardar el juego:", error); } diff --git a/webapp/src/pages/Clasico/Clasico.js b/webapp/src/pages/Clasico/Clasico.js index d5de8280..48dc77da 100644 --- a/webapp/src/pages/Clasico/Clasico.js +++ b/webapp/src/pages/Clasico/Clasico.js @@ -195,7 +195,7 @@ const JuegoPreguntas = () => { }; try { - const response = await axios.post(URL + "/saveGameList", newGame); + await axios.post(URL + "/saveGameList", newGame); } catch (error) { console.error( "Error al guardar el juego en la lista de partidas:", @@ -203,7 +203,7 @@ const JuegoPreguntas = () => { ); } try { - const response = await axios.post(URL + "/saveGame", newGame); + await axios.post(URL + "/saveGame", newGame); } catch (error) { console.error("Error al guardar el juego:", error); } diff --git a/webapp/src/pages/Social/GroupDetails.js b/webapp/src/pages/Social/GroupDetails.js index 42ac867a..efbc2e49 100644 --- a/webapp/src/pages/Social/GroupDetails.js +++ b/webapp/src/pages/Social/GroupDetails.js @@ -1,5 +1,5 @@ import React, { useState, useEffect } from "react"; -import { useParams, useNavigate } from "react-router-dom"; +import { useParams } from "react-router-dom"; import { Container, Box, @@ -29,8 +29,6 @@ const GroupDetails = () => { const { groupName } = useParams(); const apiEndpoint = process.env.REACT_APP_API_ENDPOINT || "http://localhost:8000"; - - const navigate = useNavigate(); useEffect(() => { fetchGroupDetails();