Skip to content
Snippets Groups Projects
Commit e2fe2642 authored by Gary Chapman's avatar Gary Chapman Committed by GitHub
Browse files

Fixed code that check for empty object

parent c06e07db
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ class BotHelpers {
// "public" properties accessed by getters
// allUsers / onlineUsers return whichever properties are enabled by settings
get allUsers() {
if (!this.userFields.length) {
if (!Object.keys(this.userFields)) {
this.requestError();
return false;
} else {
......@@ -84,7 +84,7 @@ class BotHelpers {
}
}
get onlineUsers() {
if (!this.userFields.length) {
if (!Object.keys(this.userFields)) {
this.requestError();
return false;
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment