From 075678bfcafe189df3985c8cd3abbf485f7c9f96 Mon Sep 17 00:00:00 2001 From: bidof Date: Wed, 1 May 2024 06:18:52 +0200 Subject: [PATCH] espero que sea el ultimo commit S-D pero ahora de verdad --- webapp/src/components/history/History.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/webapp/src/components/history/History.js b/webapp/src/components/history/History.js index f0e9174..ec0020e 100644 --- a/webapp/src/components/history/History.js +++ b/webapp/src/components/history/History.js @@ -3,7 +3,6 @@ import { useEffect, useState} from 'react'; import { Box, Spinner} from "@chakra-ui/react"; import { AllGamesBlock } from './AllGamesBlock'; import { StatsBlock } from './StatsBlock'; -import { act } from 'react-dom/test-utils'; import { useTranslation } from 'react-i18next'; import { Text } from "@chakra-ui/react"; @@ -39,13 +38,14 @@ export function History({darkMode}){ setIsLoadingGames(false); } else{ - act(() => { + console.log('neverPlayer a false en useEffect en partidas'); console.log('setAllGames ', Object.values(partidas)); let gamesArray = Object.values(partidas); setAllGames(gamesArray); setIsLoadingGames(false); - }); + + } }) .catch(error => { @@ -69,12 +69,12 @@ export function History({darkMode}){ setIsLoadingStats(false); } else{ - act(() => { + //console.log('neverPlayer a false en useEffect en estadisticas'); //console.log('setAllGames ', Object.values(estadisticas)); setStatistics(estadisticas); setIsLoadingStats(false); - }); + } }) .catch(error => {