Merge branch 'main' into telegram

This commit is contained in:
Harvey Tindall
2021-05-08 16:08:20 +01:00
committed by GitHub
6 changed files with 79 additions and 4 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ class DOMInvite implements Invite {
get usedBy(): { [name: string]: number } { return this._usedBy; }
set usedBy(uB: { [name: string]: number }) {
this._usedBy = uB;
if (uB.length == 0) {
if (Object.keys(uB).length == 0) {
this._right.classList.add("empty");
this._userTable.innerHTML = `<p class="content">${window.lang.strings("inviteNoUsersCreated")}</p>`;
return;