summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/suggestion/switch_channel_provider.jsx8
1 files changed, 1 insertions, 7 deletions
diff --git a/webapp/components/suggestion/switch_channel_provider.jsx b/webapp/components/suggestion/switch_channel_provider.jsx
index 35ce4d578..301974b9a 100644
--- a/webapp/components/suggestion/switch_channel_provider.jsx
+++ b/webapp/components/suggestion/switch_channel_provider.jsx
@@ -24,13 +24,7 @@ class SwitchChannelSuggestion extends Suggestion {
className += ' suggestion--selected';
}
- let displayName = '';
- if (item.type === Constants.DM_CHANNEL) {
- displayName = item.display_name;
- } else {
- displayName = item.display_name + ' (' + item.name + ')';
- }
-
+ const displayName = item.display_name;
let icon = null;
if (item.type === Constants.OPEN_CHANNEL) {
icon = <div className='status'><i className='fa fa-globe'/></div>;