RoomHeader: Make 'undefined' check more explicit

pull/21833/head
Richard van der Hoff 2016-01-05 15:57:41 +00:00
parent 4730179c26
commit a2b7c9ba96
1 changed files with 1 additions and 1 deletions

View File

@ -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">&nbsp;(~{ this.props.searchInfo.searchCount } results)</div>;
}