fixed wrong title

This commit is contained in:
ue 2019-08-21 23:00:50 +03:00
parent eca4dd2ebf
commit 1bf9ffef47

View File

@ -45,15 +45,13 @@ class BoostScreen extends PureComponent {
}; };
_getTitle = title => { _getTitle = title => {
const _title = title && title.toLowerCase(); let _title = title.toUpperCase();
if (_title) { if (_title.includes('(ESTEEM)')) {
if (title.includes('(ESTEEM)')) return title.replace('(ESTEEM)', ''); _title = _title.replace('(ESTEEM)', '');
return title.toUpperCase();
} }
return ''; return _title;
}; };
render() { render() {
@ -87,7 +85,7 @@ class BoostScreen extends PureComponent {
isLoading={false} isLoading={false}
> >
<View style={styles.buttonContent}> <View style={styles.buttonContent}>
<Text style={styles.buttonText}>{this._getTitle(get(item, 'title', ''))}</Text> <Text style={styles.buttonText}>{this._getTitle(get(item, 'title'))}</Text>
<View style={styles.buttonIconWrapper}> <View style={styles.buttonIconWrapper}>
<Icon name="add" iconType="MaterialIcons" color="#357ce6" size={23} /> <Icon name="add" iconType="MaterialIcons" color="#357ce6" size={23} />
</View> </View>