Skip to content

Commit

Permalink
Fix lobby stuck in loading state
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerkrewson committed Jul 28, 2024
1 parent ecefbd8 commit f844963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/[gameCode].js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Game = ({ loading }) => {
status: "loading",
});
const [isRocketcrab, setIsRocketcrab] = useState(false);
const [isConnected, setIsConnected] = useState(false);
const [isConnected, setIsConnected] = useState(socket.connected);

useEffect(() => {
const cl = socket.on("connect", () => setIsConnected(true));
Expand Down

0 comments on commit f844963

Please sign in to comment.