Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ong6 committed Nov 11, 2023
1 parent ef21152 commit c250df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/hooks/useCollaboration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const useCollaboration = ({
// }, [id, currentUser]);

useEffect(() => {
if (currentUser) {
if (currentUser && roomId) {
currentUser.getIdToken(true).then((token) => {
const socketConnection = io(wsCollaborationProxyGatewayAddress, {
extraHeaders: {
Expand Down

0 comments on commit c250df1

Please sign in to comment.