From 4bdb77287866c47f5b61d6472b3ff9cc4020f35e Mon Sep 17 00:00:00 2001 From: Wolfboy248 <121288977+Wolfboy248@users.noreply.github.com> Date: Thu, 11 Jul 2024 19:22:00 +0200 Subject: fix: about page crash, update packages (#181) --- frontend/src/components/pages/games.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'frontend/src/components/pages/games.js') diff --git a/frontend/src/components/pages/games.js b/frontend/src/components/pages/games.js index 8c27151..75b5e44 100644 --- a/frontend/src/components/pages/games.js +++ b/frontend/src/components/pages/games.js @@ -10,6 +10,10 @@ export default function Games(prop) { const location = useLocation(); useEffect(() => { + document.querySelectorAll(".games-page-item-body").forEach((game, index) => { + game.innerHTML = ""; + }) + const fetchGames = async () => { try { const response = await fetch("https://lp.ardapektezol.com/api/v1/games", { -- cgit v1.2.3