more code

This commit is contained in:
Ste Vadis
2023-09-14 21:14:11 +03:00
parent 9fc1434b5c
commit 057f46403c
2 changed files with 15 additions and 14 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ function Poll(props) {
console.log('POLL emit.info.id:', id)
socket.emit('info', id)
}
if (exist && !token && anon) {
if (exist && !token && anon !== undefined && anon) {
const data = {pid:id, user:randomUser(24)};
socket.emit('join', data);
console.log('POLL emit.join.data:', data)