Invite: fix "none yet" message on users created

This commit is contained in:
Harvey Tindall
2021-05-07 22:41:51 +01:00
parent 0e21942cd6
commit b91302ddf8
7 changed files with 92 additions and 1 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;