Skip to content

Commit

Permalink
UPDATE: main branch with current debugging process
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisSte committed Sep 9, 2023
1 parent f767571 commit fa6682a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions client/src/components/SelectedGenreGames.jsx
Original file line number Diff line number Diff line change
@@ -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) => {
Expand Down

0 comments on commit fa6682a

Please sign in to comment.