From c29644cbab1788d5ea2e9eb041b87f9adc82f4ce Mon Sep 17 00:00:00 2001 From: u-e Date: Tue, 12 Feb 2019 18:22:49 +0300 Subject: [PATCH] bugfix empty and dublicate --- src/screens/bookmarks/screen/bookmarksScreen.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/screens/bookmarks/screen/bookmarksScreen.js b/src/screens/bookmarks/screen/bookmarksScreen.js index 1313e1f3f..7f22350fd 100644 --- a/src/screens/bookmarks/screen/bookmarksScreen.js +++ b/src/screens/bookmarks/screen/bookmarksScreen.js @@ -60,6 +60,7 @@ class BookmarksScreen extends Component { const { isLoading, intl } = this.props; const isNoItem = (data && data.length === 0) || !data; const placeHolder = type === 'bookmarks' ? : ; + const isFavorites = type === 'favorites'; return ( @@ -75,7 +76,9 @@ class BookmarksScreen extends Component { ) : ( !isNoItem && ( item._id !== data[item._id] && isFavorites ? item.account !== data[item.account] && item : item) + } keyExtractor={item => item._id} removeClippedSubviews={false} renderItem={({ item, index }) => this._renderItem(item, index, type)}