aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/pages/games.js
diff options
context:
space:
mode:
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", {