diff --git a/src/pages/Game.jsx b/src/pages/Game.jsx index dfab7d9..93d8fb9 100644 --- a/src/pages/Game.jsx +++ b/src/pages/Game.jsx @@ -1,3 +1,4 @@ +import { useParams } from "react-router-dom"; import { GameContextProvider } from "../context/GameContext.js"; import GameContainer from "../components/game/GameContainer.jsx"; @@ -8,6 +9,8 @@ import GameModal from "../components/game/GameModal.jsx"; import AnimatedPage from "../components/AnimatedPage.jsx"; export default function Game() { + const { id } = useParams(); + const gameId = id || "latest"; return ( <> @@ -16,7 +19,7 @@ export default function Game() { - +