[call-me] - fix typo

This commit is contained in:
Miroslav Pejic
2024-09-15 10:50:26 +02:00
parent d3bcfb2b03
commit b783057ff6
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -189,7 +189,7 @@ function handleConnection(socket) {
socket.username = name;
console.log('User signed in:', name);
sendMsgTo(socket, { type: 'signIn', success: true });
console.log('Users', getConnectedUsers());
console.log('Connected Users', getConnectedUsers());
} else {
sendMsgTo(socket, { type: 'signIn', success: false, message: 'Username already in use' });
}
@@ -245,7 +245,7 @@ function handleConnection(socket) {
if (recipientSocket) {
sendMsgTo(recipientSocket, { type: 'leave' });
}
console.log('Users', getConnectedUsers());
console.log('Connected Users', getConnectedUsers());
}
}
}
+1
View File
@@ -120,6 +120,7 @@ function handleCallClick() {
const callToUsername = callUsernameIn.value;
if (callToUsername.length > 0) {
if (callToUsername === userName) {
callUsernameIn.value = '';
handleError('You cannot call yourself.');
return;
}