Skip to content

Commit

Permalink
Fix bad object access and render issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jrudess committed Jan 10, 2018
1 parent 025f27a commit e65df03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions site.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,12 @@ class Site {
}

addStreamer(streamer, list, isTemp) {
if (typeof streamer === "undefined") {
// For mfc, when a bad username is looked up, an empty
// object is returned
return false;
}

const index = list.indexOf(streamer.uid);
let rc = false;
if (index === -1) {
Expand Down
1 change: 1 addition & 0 deletions tui.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ class Tui {
break;
}
this.logbody.focus();
this.render();
});
}

Expand Down

0 comments on commit e65df03

Please sign in to comment.