Don't apply case logic to app names

As they should have the Correct Case in integrations land now
This commit is contained in:
Luke Barnard 2017-08-18 14:57:28 +01:00
parent 3a7aa926c3
commit 5e0a7212d9
2 changed files with 1 additions and 5 deletions

View file

@ -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.

View file

@ -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;
},