aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pages/game.tsx2
-rw-r--r--pages/user.tsx1
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;