This commit is contained in:
Neil Lalonde 2019-05-08 11:22:21 -04:00
parent 10ab104cd8
commit 896e5a9838
1 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,9 @@ export default Ember.Component.extend({
}
const groupNames = groups.map(g => g.name.toLowerCase());
const noAdsGroupNames = this.siteSettings.no_ads_for_groups.split("|").map(g => g.toLowerCase());
const noAdsGroupNames = this.siteSettings.no_ads_for_groups
.split("|")
.map(g => g.toLowerCase());
return !groupNames.any(g => noAdsGroupNames.includes(g));
},