FIX: groups with mixed case names not working

This commit is contained in:
Neil Lalonde 2019-05-08 11:01:01 -04:00
parent 4bd2035866
commit 365f441924
1 changed files with 3 additions and 2 deletions

View File

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