{t('pages.humancalculator.time')} {Math.floor(tiempoRestante)}
diff --git a/webapp/src/pages/Clasico/Clasico.js b/webapp/src/pages/Clasico/Clasico.js
index 194c2344..48dc77da 100644
--- a/webapp/src/pages/Clasico/Clasico.js
+++ b/webapp/src/pages/Clasico/Clasico.js
@@ -195,8 +195,7 @@ const JuegoPreguntas = () => {
};
try {
- const response = await axios.post(URL + "/saveGameList", newGame);
- console.log("Solicitud exitosa:", response.data);
+ await axios.post(URL + "/saveGameList", newGame);
} catch (error) {
console.error(
"Error al guardar el juego en la lista de partidas:",
@@ -204,8 +203,7 @@ const JuegoPreguntas = () => {
);
}
try {
- const response = await axios.post(URL + "/saveGame", newGame);
- console.log("Solicitud exitosa:", response.data);
+ await axios.post(URL + "/saveGame", newGame);
} catch (error) {
console.error("Error al guardar el juego:", error);
}
@@ -318,7 +316,7 @@ const JuegoPreguntas = () => {
{t("pages.classic.time")} {Math.floor(tiempoRestante)}
- Puntuación: {puntuacion}
+ {t("pages.classic.score")} {puntuacion}
{
button.click();
const checks = screen.getAllByRole("checkbox");
- console.log(checks)
checks[0].checked = true;
button.click();
});
diff --git a/webapp/src/pages/History/History.js b/webapp/src/pages/History/History.js
index 01c0fe83..0a8845a8 100644
--- a/webapp/src/pages/History/History.js
+++ b/webapp/src/pages/History/History.js
@@ -33,7 +33,6 @@ const History = () => {
.then((response) => response.json())
.then((data) => {
setUserData(data);
- console.log(data);
setLoading(false);
})
.catch((error) => {
diff --git a/webapp/src/pages/Perfil/Perfil.js b/webapp/src/pages/Perfil/Perfil.js
index 3b163a05..4379c9c5 100644
--- a/webapp/src/pages/Perfil/Perfil.js
+++ b/webapp/src/pages/Perfil/Perfil.js
@@ -4,10 +4,12 @@ import Footer from "../../components/Footer/Footer.js";
import Profile from "../../components/Profile/Profile.js";
const Perfil = () => {
+ const username = localStorage.getItem("username");
+
return (
<>
-
+
>
);
diff --git a/webapp/src/pages/Social/FriendsList.js b/webapp/src/pages/Social/FriendsList.js
index 82bcad8e..bef4b94d 100644
--- a/webapp/src/pages/Social/FriendsList.js
+++ b/webapp/src/pages/Social/FriendsList.js
@@ -37,8 +37,6 @@ const FriendList = () => {
return response.json();
})
.then((data) => {
- console.log(data);
- console.log(data.friends);
setFriends(data.friends);
setIsLoading(false);
})
diff --git a/webapp/src/pages/Social/GroupDetails.js b/webapp/src/pages/Social/GroupDetails.js
index 91acc6ee..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,
@@ -18,7 +18,7 @@ import {
import Nav from "../../components/Nav/Nav.js";
import Footer from "../../components/Footer/Footer.js";
import { useTranslation } from "react-i18next";
-import Perfil from "../../components/Profile/Profile.js";
+import Profile from "../../components/Profile/Profile.js";
const GroupDetails = () => {
@@ -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();
@@ -55,7 +53,7 @@ const GroupDetails = () => {
};
const redirectToProfile = (member) => {
- navigate(`/perfil/${member.username}`);
+ setUser(member);
};
@@ -63,7 +61,7 @@ const GroupDetails = () => {
return (
<>
-
+
>
diff --git a/webapp/src/pages/Social/GroupDetails.test.js b/webapp/src/pages/Social/GroupDetails.test.js
index 171aa3b1..1a054bcc 100644
--- a/webapp/src/pages/Social/GroupDetails.test.js
+++ b/webapp/src/pages/Social/GroupDetails.test.js
@@ -98,7 +98,6 @@ describe('GroupDetails', () => {
await checks();
const viewProfileButtons = screen.getByTestId('view-profile-button-user1');
- console.log(viewProfileButtons);
fireEvent.click(viewProfileButtons);
});