From 1bf9ffef4726c4d3a58dadec2c1fffd7b3ae9d5a Mon Sep 17 00:00:00 2001 From: ue Date: Wed, 21 Aug 2019 23:00:50 +0300 Subject: [PATCH] fixed wrong title --- src/screens/boost/screen/boostScreen.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/screens/boost/screen/boostScreen.js b/src/screens/boost/screen/boostScreen.js index e663d1b47..eb973c5da 100644 --- a/src/screens/boost/screen/boostScreen.js +++ b/src/screens/boost/screen/boostScreen.js @@ -45,15 +45,13 @@ class BoostScreen extends PureComponent { }; _getTitle = title => { - const _title = title && title.toLowerCase(); + let _title = title.toUpperCase(); - if (_title) { - if (title.includes('(ESTEEM)')) return title.replace('(ESTEEM)', ''); - - return title.toUpperCase(); + if (_title.includes('(ESTEEM)')) { + _title = _title.replace('(ESTEEM)', ''); } - return ''; + return _title; }; render() { @@ -87,7 +85,7 @@ class BoostScreen extends PureComponent { isLoading={false} > - {this._getTitle(get(item, 'title', ''))} + {this._getTitle(get(item, 'title'))}