From fa6682a2b6e058852ada85522b85e50837ff0c3f Mon Sep 17 00:00:00 2001 From: Stephanie <126029841+HarrisSte@users.noreply.github.com> Date: Sat, 9 Sep 2023 12:32:51 -0400 Subject: [PATCH] UPDATE: main branch with current debugging process --- client/src/components/SelectedGenreGames.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/components/SelectedGenreGames.jsx b/client/src/components/SelectedGenreGames.jsx index 4bc5720..cda58c8 100644 --- a/client/src/components/SelectedGenreGames.jsx +++ b/client/src/components/SelectedGenreGames.jsx @@ -1,13 +1,14 @@ import { useEffect, useState } from "react"; +// import.meta.env.VITE_API_KEY; - + // console.log(import.meta.env.VITE_API_KEY); const SelectedGenreGames = ({ genreId }) => { - const apiKey = import.meta.env.VITE_API_KEY; + // const apiKey = import.meta.env.VITE_API_KEY; const [genreGames, setGenreGames] = useState([]); useEffect(() => { fetch( - `https://api.rawg.io/api/games/key=${apiKey}=${genreId}` + `https://api.rawg.io/api/games?key=bf22dc51e531456db8bc42a19dac9897&genres=${genreId}` ) .then((res) => res.json()) .then((data) => {