Skip to content

Commit

Permalink
Fix issues in game.js after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
joshzcold committed Dec 28, 2024
1 parent ea572d0 commit a8f7bf5
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions pages/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,22 +150,6 @@ export default function Game(props) {
} else {
console.error("didn't expect", json);
}
if (json.data.teams[0].name === "Team 1") {
json.data.teams[0].name = `${t("team")} ${t("number", {
count: 1,
})}`;
}
if (json.data.teams[1].name === "Team 2") {
json.data.teams[1].name = `${t("team")} ${t("number", {
count: 2,
})}`;
}
setGame(json.data);
let session = cookieCutter.get("session");
let [_, id] = session.split(":");
if (json.data?.registeredPlayers[id] == "host") {
setIsHost(true);
}
};

setInterval(() => {
Expand Down

0 comments on commit a8f7bf5

Please sign in to comment.