From 69d9a8cbb4352df174ea6a6f11d92ecb1e19cf8a Mon Sep 17 00:00:00 2001 From: alegarman2002 <116609314+alegarman2002@users.noreply.github.com> Date: Fri, 3 May 2024 03:26:27 +0200 Subject: [PATCH] Eliminated console.log --- webapp/src/components/FirstGame.js | 1 - webapp/src/components/game/Calculator.js | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/webapp/src/components/FirstGame.js b/webapp/src/components/FirstGame.js index 2d3ff1df..24adabe4 100644 --- a/webapp/src/components/FirstGame.js +++ b/webapp/src/components/FirstGame.js @@ -20,7 +20,6 @@ const Quiz = () => { let username = localStorage.getItem("username") const navigator = useNavigate(); let allQuestions = useLocation().state.questions; - console.log(allQuestions) let haveEnter = false; let id = useLocation().state.gameId; diff --git a/webapp/src/components/game/Calculator.js b/webapp/src/components/game/Calculator.js index e1ad74a3..b5d38f34 100644 --- a/webapp/src/components/game/Calculator.js +++ b/webapp/src/components/game/Calculator.js @@ -41,8 +41,7 @@ const Calculator = () => { const time = setInterval(() => { setRemTime((progress) => { if(progress === 100){ - console.log("Imprimimos id", id) - console.log("Answered questions", answeredQuestions) + let avgtime = 80/questions.length if (answeredQuestions.length !== 0) { gameStore(id, username, points, answeredQuestions, avgtime);