RoomHeader: Make 'undefined' check more explicit
This commit is contained in:
parent
4730179c26
commit
a2b7c9ba96
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ module.exports = React.createClass({
|
|||
var searchStatus;
|
||||
// don't display the search count until the search completes and
|
||||
// gives us a valid (possibly zero) searchCount.
|
||||
if (this.props.searchInfo && this.props.searchInfo.searchCount != null) {
|
||||
if (this.props.searchInfo && this.props.searchInfo.searchCount !== undefined && this.props.searchInfo.searchCount !== null) {
|
||||
searchStatus = <div className="mx_RoomHeader_searchStatus"> (~{ this.props.searchInfo.searchCount } results)</div>;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue