From 5d4bca7816b2181cbc5a3bcf0428097af9f08ec1 Mon Sep 17 00:00:00 2001 From: Chars chan <28523197+Charsy89@users.noreply.github.com> Date: Thu, 28 May 2020 11:57:54 -0600 Subject: [PATCH] Ooops... --- src/Room.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Room.js b/src/Room.js index cc0ac12..c437341 100644 --- a/src/Room.js +++ b/src/Room.js @@ -107,7 +107,7 @@ class Room extends EventEmitter { updateParticipant(pid, options) { let p = null; Array.from(this.ppl).map(rpg => { - if(e[1].user._id == pid) p = e[1]; + if(rpg[1].user._id == pid) p = rpg[1]; }); if (p == null) return; options.name ? p.user.name = options.name : {};