From 0871129758e02947a2263fd4307796f3a318c369 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 1 Dec 2018 12:55:54 +0800 Subject: [PATCH] Only show reputation for hashtags shown=true --- src/redux/sagas/hashtagList-saga.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/redux/sagas/hashtagList-saga.html b/src/redux/sagas/hashtagList-saga.html index 3596b7f5..250a65aa 100644 --- a/src/redux/sagas/hashtagList-saga.html +++ b/src/redux/sagas/hashtagList-saga.html @@ -61,9 +61,11 @@ // visitedHashtags is an object const visitedHashtags = yield select(selectors.visitedHashtags) const uniqueHashtags = visitedHashtags - hashtagList.forEach(hashtag => { - uniqueHashtags[hashtag.hashtagAddress] = hashtag - }) + hashtagList + .filter(hashtag => hashtag.hashtagShown) + .forEach(hashtag => { + uniqueHashtags[hashtag.hashtagAddress] = hashtag + }) const uniqueHashtagList = Object.values(uniqueHashtags) // Get reputation for all hashtags in the list