FIX: ads always showing in all placements for CodeFund and Carbon Ads

Checkboxes used to choose which placements to have ads were not handled
correctly.
This commit is contained in:
Neil Lalonde 2019-07-17 14:05:45 -04:00
parent dee02ac3ba
commit 71c51ebd8b
1 changed files with 5 additions and 1 deletions

View File

@ -117,7 +117,11 @@ export default AdComponent.extend({
}${placeUnderscored}_code`;
}
if (name !== false && !Ember.isBlank(this.siteSettings[name])) {
if (
name !== false &&
this.siteSettings[name] !== false &&
!Ember.isBlank(this.siteSettings[name])
) {
types.push(adNetwork);
}
}