FIX: Amazon ads never showing

This commit is contained in:
Neil Lalonde 2019-07-16 10:55:28 -04:00
parent 09a92f3438
commit 93af4587fa
1 changed files with 3 additions and 2 deletions

View File

@ -93,8 +93,9 @@ export default AdComponent.extend({
name;
if (
config.enabledSetting &&
!Ember.isBlank(this.siteSettings[config.enabledSetting]) &&
((config.enabledSetting &&
!Ember.isBlank(this.siteSettings[config.enabledSetting])) ||
config.enabledSetting === false) &&
(!postNumber ||
!config.nthPost ||
this.isNthPost(parseInt(this.siteSettings[config.nthPost], 10)))