Skip to content

Commit

Permalink
re unsubscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanDuvall committed Jun 7, 2024
1 parent 01338b3 commit 1eaa15a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Lobby/Lobby.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ function Lobby({ players }: Props) {
console.log(data);
if (data.game_started === true) {
navigate(`/game/play/${gameid}`, { state: game });
console.log(link)
//link.unsubscribe();
link.unsubscribe();
}
setPlayers(data.player_list);
},
Expand Down

0 comments on commit 1eaa15a

Please sign in to comment.