diff --git a/assets/chat/js/user.js b/assets/chat/js/user.js index 8a846dc7..f8c069f3 100644 --- a/assets/chat/js/user.js +++ b/assets/chat/js/user.js @@ -47,11 +47,11 @@ class ChatUser { this.displayName = user; this.username = this.displayName.toLowerCase(); } else { - this.id = user.id; - this.displayName = user.nick; + this.id = user.id || null; + this.displayName = user.nick || ''; this.username = this.displayName.toLowerCase(); - this.createdDate = user.createdDate; - this.features = user.features; + this.createdDate = user.createdDate || ''; + this.features = user.features || []; } }