From 03ddb63507d5a1239e63d7c3c21bc44421829122 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 21 Sep 2017 10:34:11 +0100 Subject: [PATCH] Remove redundant slice --- src/components/structures/GroupView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js index 3dea220111..57bce7cba9 100644 --- a/src/components/structures/GroupView.js +++ b/src/components/structures/GroupView.js @@ -199,7 +199,7 @@ const FeaturedUser = React.createClass({ render: function() { const BaseAvatar = sdk.getComponent("avatars.BaseAvatar"); - const name = this.props.summaryInfo.displayname || this.props.summaryInfo.user_id.slice(1); + const name = this.props.summaryInfo.displayname || this.props.summaryInfo.user_id; const permalink = 'https://matrix.to/#/' + this.props.summaryInfo.user_id; const userNameNode = {name};