diff --git a/src/TextForEvent.js b/src/TextForEvent.js index f99cf7bde5..55ea500092 100644 --- a/src/TextForEvent.js +++ b/src/TextForEvent.js @@ -252,10 +252,7 @@ function textForWidgetEvent(event) { const senderName = event.sender ? event.sender.name : event.getSender(); const previousContent = event.getPrevContent() || {}; const {name, type, url} = event.getContent() || {}; - let widgetName = widgetName || name || type || previousContent.type || ''; - - // Apply sentence case - widgetName = widgetName ? widgetName[0].toUpperCase() + widgetName.slice(1).toLowerCase() + ' ' : ''; + const widgetName = widgetName || name || type || previousContent.type || ''; // If the widget was removed, its content should be {}, but this is sufficiently // equivalent to that condition. diff --git a/src/components/views/elements/AppTile.js b/src/components/views/elements/AppTile.js index a493810c52..a411e1d6f6 100644 --- a/src/components/views/elements/AppTile.js +++ b/src/components/views/elements/AppTile.js @@ -183,7 +183,6 @@ export default React.createClass({ let appTileName = "No name"; if(this.props.name && this.props.name.trim()) { appTileName = this.props.name.trim(); - appTileName = appTileName[0].toUpperCase() + appTileName.slice(1).toLowerCase(); } return appTileName; },