From 7ef6b5d2262c3239d4e3693112d2a7a536d15999 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Sun, 19 Nov 2017 01:41:58 -0200 Subject: [PATCH] ??? --- app/presentation/RoomItem.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/app/presentation/RoomItem.js b/app/presentation/RoomItem.js index fd294202a..b69da666d 100644 --- a/app/presentation/RoomItem.js +++ b/app/presentation/RoomItem.js @@ -120,24 +120,13 @@ export default class RoomItem extends React.PureComponent { render() { const { unread, name, _updatedAt } = this.props; - if (_updatedAt) { - return ( - - {this.icon} - - { name } - { moment(_updatedAt).format(this.props.dateFormat) } - - {this.renderNumber(unread)} - - ); - } return ( {this.icon} { name } + {_updatedAt ? { moment(_updatedAt).format(this.props.dateFormat) } : null} {this.renderNumber(unread)}