[FIX] Unnecessary rerender on RoomItem when status is undefined (#1336)

This commit is contained in:
Diego Mello 2019-10-29 15:13:58 -03:00 committed by GitHub
parent d15a5612db
commit 30f1921fe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -164,7 +164,8 @@ RoomItem.propTypes = {
};
RoomItem.defaultProps = {
avatarSize: 48
avatarSize: 48,
status: 'offline'
};
const mapStateToProps = (state, ownProps) => ({