Skip to content

Commit

Permalink
Warnings eliminados
Browse files Browse the repository at this point in the history
  • Loading branch information
CANCI0 committed Apr 27, 2024
1 parent 433e259 commit 269b3bc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion webapp/src/pages/Bateria/Bateria.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
5 changes: 2 additions & 3 deletions webapp/src/pages/Calculadora/Calculadora.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/pages/Clasico/Clasico.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,15 @@ 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:",
error
);
}
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);
}
Expand Down
4 changes: 1 addition & 3 deletions webapp/src/pages/Social/GroupDetails.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 269b3bc

Please sign in to comment.