aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/pages/games.js
diff options
context:
space:
mode:
authorWolfboy248 <121288977+Wolfboy248@users.noreply.github.com>2024-07-11 19:22:00 +0200
committerGitHub <noreply@github.com>2024-07-11 20:22:00 +0300
commit4bdb77287866c47f5b61d6472b3ff9cc4020f35e (patch)
treea8aac6098d991e5ae607dd7264f7bf2631d84e99 /frontend/src/components/pages/games.js
parentdocs: add wolfboy248 onto project team (#179) (diff)
downloadlphub-4bdb77287866c47f5b61d6472b3ff9cc4020f35e.tar.gz
lphub-4bdb77287866c47f5b61d6472b3ff9cc4020f35e.tar.bz2
lphub-4bdb77287866c47f5b61d6472b3ff9cc4020f35e.zip
fix: about page crash, update packages (#181)
Diffstat (limited to 'frontend/src/components/pages/games.js')
-rw-r--r--frontend/src/components/pages/games.js4
1 files changed, 4 insertions, 0 deletions
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) {
10 const location = useLocation(); 10 const location = useLocation();
11 11
12 useEffect(() => { 12 useEffect(() => {
13 document.querySelectorAll(".games-page-item-body").forEach((game, index) => {
14 game.innerHTML = "";
15 })
16
13 const fetchGames = async () => { 17 const fetchGames = async () => {
14 try { 18 try {
15 const response = await fetch("https://lp.ardapektezol.com/api/v1/games", { 19 const response = await fetch("https://lp.ardapektezol.com/api/v1/games", {