From 957aa0403d34f33f13d24f00e51ea86e56adef77 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sat, 27 May 2017 16:03:07 +0100 Subject: [PATCH] fix https://github.com/vector-im/riot-web/issues/4052 --- src/components/views/rooms/RoomPreviewBar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {