Merge pull request #1057 from esteemapp/bugfix/producttitle

fixed wrong title
This commit is contained in:
Mustafa Buyukcelebi 2019-08-22 23:26:11 +03:00 committed by GitHub
commit ce574e5d36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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>