diff --git a/webapp/e2e/steps/home.steps.js b/webapp/e2e/steps/home.steps.js index 35cd730..6f83e6b 100644 --- a/webapp/e2e/steps/home.steps.js +++ b/webapp/e2e/steps/home.steps.js @@ -47,7 +47,7 @@ defineFeature(feature, test => { then('I should be able to interact with the app', async () => { await expect(page).toMatchElement("button", { text: "JUGAR" }); await expect(page).toMatchElement("button", { text: "ESTADÍSTICAS" }); - }); + }); }) afterAll(async ()=>{ diff --git a/webapp/src/components/Pages/Estadisticas.js b/webapp/src/components/Pages/Estadisticas.js index dcaa63f..99d6902 100644 --- a/webapp/src/components/Pages/Estadisticas.js +++ b/webapp/src/components/Pages/Estadisticas.js @@ -12,7 +12,7 @@ const Estadisticas = ({isLogged, username}) => { const [correctAnswers, setCorrectAnswers] = useState(0); const [incorrectAnswers, setIncorrectAnswers] = useState(0); const [completedGames, setCompletedGames] = useState(0); - const [averageTime, setAverageTime] = useState(0); + //const [averageTime, setAverageTime] = useState(0); const [firstRender, setFirstRender] = useState(false); useEffect(() => { @@ -30,7 +30,7 @@ const Estadisticas = ({isLogged, username}) => { setCorrectAnswers(datos.user.correctAnswers); setIncorrectAnswers(datos.user.incorrectAnswers); setCompletedGames(datos.user.completedGames); - setAverageTime(datos.user.averageTime); + //setAverageTime(datos.user.averageTime); } catch (error) { setError('Error al cargar la información'); } @@ -54,10 +54,6 @@ const Estadisticas = ({isLogged, username}) => {