Skip to content

Commit

Permalink
Merge pull request #2428 from brave/exclude-0
Browse files Browse the repository at this point in the history
Do not show 0% after normalization
  • Loading branch information
NejcZdovc committed May 14, 2019
2 parents ce93e37 + 9e85104 commit 4b19e24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/brave_rewards/browser/rewards_service_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2829,7 +2829,9 @@ void RewardsServiceImpl::OnPublisherListNormalizedSaved(

ContentSiteList site_list;
for (auto& publisher : *list) {
site_list.push_back(PublisherInfoToContentSite(publisher));
if (publisher.percent >= 1) {
site_list.push_back(PublisherInfoToContentSite(publisher));
}
}

sort(site_list.begin(), site_list.end());
Expand Down

0 comments on commit 4b19e24

Please sign in to comment.