Skip to content

Commit

Permalink
fix: pencil emit 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Haze10425 committed Feb 18, 2024
1 parent 30d6e26 commit 6654f62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Room/Room.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const Room: React.FC = () => {

// 게임 시작 (방장)
const handleStart = () => {
socket.emit('pencil', isRound);
socket.emit('pencil', { isRound: isRound, roomId: roomId });
getAnswer();
socket.emit('gameStart');
handleIsRound();
Expand All @@ -151,7 +151,7 @@ const Room: React.FC = () => {
isRound: isRound,
roomId: Number(roomId),
});
socket.emit('pencil', isRound + 1);
socket.emit('pencil', { isRound: isRound + 1, roomId: roomId });
return roomSetting?.time;
}
socket?.emit('remainTimer', {
Expand Down

0 comments on commit 6654f62

Please sign in to comment.