Skip to content

Commit

Permalink
chore: remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
jjgancfer committed Apr 21, 2024
1 parent 4425e28 commit 84f989a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions webapp/src/pages/Game.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,8 @@ export default function Game() {
};

const startNewRound = useCallback(async (gameId, startsGame) => {
console.log(`pepe desde fuera ${startsGame} y ${hasAnswered}`)
if (hasAnswered || startsGame) {
try{
console.log("pepe")
const result = await startRound(gameId);
setTimeStartRound(new Date(result.data.round_start_time).getTime());
setRoundNumber(result.data.actual_round )
Expand Down Expand Up @@ -168,7 +166,6 @@ export default function Game() {

useEffect(() => {
let timeout;
console.log(timeElapsed >= roundDuration && timeStartRound !== -1);
if (timeElapsed >= roundDuration && timeStartRound !== -1) {
timeout = setTimeout(() => {
setHasAnswered(true);
Expand Down

0 comments on commit 84f989a

Please sign in to comment.