diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-03-09 21:11:40 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-03-09 21:11:40 +0100 |
commit | 8b096767ed904eb52b4f6ddf82f1463e4ea8af93 (patch) | |
tree | e428ef871a259b27d862df0a937beb6f2e509bc5 | |
parent | e4b7c38451efef544f1ed639fc0d9e3597a920a0 (diff) |
resign button now works
-rw-r--r-- | pages/game.tsx | 2 | ||||
-rw-r--r-- | pages/user.tsx | 1 |
2 files changed, 1 insertions, 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 })}} /> <GameOutcomeDialog outcome={outcome} diff --git a/pages/user.tsx b/pages/user.tsx index 618ae9e..42cfb17 100644 --- a/pages/user.tsx +++ b/pages/user.tsx @@ -72,7 +72,6 @@ export default function AccountPage() { var [user, setUser] = useState<userInfo>(); 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; |