diff --git a/src/app/chat/page.tsx b/src/app/chat/page.tsx index 2c3d7fe..8c1dae7 100644 --- a/src/app/chat/page.tsx +++ b/src/app/chat/page.tsx @@ -339,7 +339,7 @@ export default function Home() { } return x; })); - if (whoami.id != null) + if (whoamiRef.current.id != null) socket.emit('SIG_CHAT_CHGCHANNEL', { channel: data[0].name }, chgchannelChatRes); } }