diff --git a/assets/js/components/calls/window.js b/assets/js/components/calls/window.js index aaba082e..07f1d539 100644 --- a/assets/js/components/calls/window.js +++ b/assets/js/components/calls/window.js @@ -970,7 +970,9 @@ class CallWindow extends CustomEvents { async closeMainPeer() { // Remove ready attribute - this.getMemberNameEl(userID()).classList.remove("ready"); + const memberEl = this.getMemberNameEl(userID()); + if (memberEl) + memberEl.classList.remove("ready"); // Close peer connection if(this.mainPeer) {