Skip to content

Commit

Permalink
Do not show 0% after normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
NejcZdovc committed May 13, 2019
1 parent 02f81d6 commit 9e85104
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 9e85104

Please sign in to comment.