Skip to content

Commit

Permalink
espero que sea el ultimo commit S-D pero ahora de verdad
Browse files Browse the repository at this point in the history
  • Loading branch information
bidof committed May 1, 2024
1 parent f142e9c commit 075678b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions webapp/src/components/history/History.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -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 => {
Expand All @@ -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 => {
Expand Down

0 comments on commit 075678b

Please sign in to comment.