Skip to content

Commit

Permalink
create room issue resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
deveshidwivedi committed Jun 22, 2024
1 parent 7d2be83 commit 9c34c00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/home/components/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ const Home = () => {
openModal(<NotFoundModal id={roomId} />)
}
};

socket.on("created", handleCreated);
socket.on("joined", handleJoinedRoom);


return () => {
socket.off("created");
socket.off("created", handleCreated);
socket.off("joined", handleJoinedRoom);
};
}, [openModal, roomId, router, setAtomRoomId]);
Expand Down

0 comments on commit 9c34c00

Please sign in to comment.