diff --git a/src/components/views/rooms/RoomPreviewBar.js b/src/components/views/rooms/RoomPreviewBar.js index 2cf9ade847..b20b2ef58e 100644 --- a/src/components/views/rooms/RoomPreviewBar.js +++ b/src/components/views/rooms/RoomPreviewBar.js @@ -86,7 +86,7 @@ module.exports = React.createClass({ _roomNameElement: function(fallback) { fallback = fallback || 'a room'; const name = this.props.room ? this.props.room.name : (this.props.room_alias || ""); - return name ? { name } : fallback; + return name ? name : fallback; }, render: function() {