From 4920b08960ec4d68a797cd65928b454fd5843eb8 Mon Sep 17 00:00:00 2001 From: lChap701 Date: Wed, 10 Nov 2021 12:31:24 -0600 Subject: [PATCH] Fixed typo --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b3ba78b..d19cce0 100644 --- a/index.js +++ b/index.js @@ -72,7 +72,7 @@ io.on("connection", (socket) => { userMessages = userMessages.filter((obj) => obj.room !== room); } - // Checks if a new users has been connected + // Checks if a new user has been connected let result = connectedUsers.length > 0 ? connectedUsers.find((user) => user.id === socket.id)