fix stupid typos in RoomList's shouldComponentUpdate

This commit is contained in:
Matthew Hodgson 2017-04-21 12:40:13 +01:00
parent 9de8148dfc
commit b0288ebd89

View file

@ -44,9 +44,9 @@ module.exports = React.createClass({
shouldComponentUpdate: function(nextProps, nextState) { shouldComponentUpdate: function(nextProps, nextState) {
if (nextProps.collapsed !== this.props.collapsed) return true; if (nextProps.collapsed !== this.props.collapsed) return true;
if (nextProps.searchFilter !== this.props.searchFilter) return true; if (nextProps.searchFilter !== this.props.searchFilter) return true;
if (nextState.lists !== this.props.lists || if (nextState.lists !== this.state.lists ||
nextState.isLoadingLeftRooms !== this.isLoadingLeftRooms || nextState.isLoadingLeftRooms !== this.state.isLoadingLeftRooms ||
nextState.incomingCall !== this.incomingCall) return true; nextState.incomingCall !== this.state.incomingCall) return true;
return false; return false;
}, },