From 8b096767ed904eb52b4f6ddf82f1463e4ea8af93 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 9 Mar 2021 21:11:40 +0100 Subject: resign button now works --- pages/game.tsx | 2 +- pages/user.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/game.tsx b/pages/game.tsx index d71c880..f9d7c0e 100644 --- a/pages/game.tsx +++ b/pages/game.tsx @@ -86,7 +86,7 @@ function VoerGame(props: { turn={turn} player1={props.player1} active={props.active} - resignFunction={() => {this.io.emit("resign", { game_id: props.gameID })}} + resignFunction={() => {io.emit("resign", { game_id: props.gameID })}} /> (); var [ownPage, setOwnPage] = useState(false); - typeof window !== "undefined" && console.log(new URLSearchParams(window.location.search).get("id")) useEffect(() => {(async() => { if (gotData) return; if (typeof window === "undefined") return; -- cgit v1.2.3