RoomHeader: Make 'undefined' check more explicit

This commit is contained in:
Richard van der Hoff 2016-01-05 15:57:41 +00:00
parent 4730179c26
commit a2b7c9ba96

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>;
}