From fa7f5b22576067448a5c89ef5fcadd8166fe1fe5 Mon Sep 17 00:00:00 2001 From: bidof Date: Tue, 30 Apr 2024 20:07:37 +0200 Subject: [PATCH] arreglar el history --- webapp/src/components/history/History.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/src/components/history/History.js b/webapp/src/components/history/History.js index ba64879..f26f116 100644 --- a/webapp/src/components/history/History.js +++ b/webapp/src/components/history/History.js @@ -32,7 +32,7 @@ export function History({darkMode}){ console.log("Partidas: "); console.log(partidas); - if(partidas.error || partidas.length === 0 || Object.values(partidas)){ + if(partidas.error || partidas.length === 0 ){ setNeverPlayer(true); setIsLoadingGames(false); } @@ -55,7 +55,7 @@ export function History({darkMode}){ .then(estadisticas => { //console.log("Estadísticas: "); //console.log(estadisticas); - if(estadisticas.error || estadisticas.length === 0 || Object.values(estadisticas)){ + if(estadisticas.error || estadisticas.length === 0 ){ setNeverPlayer(true); setIsLoadingStats(false); }