From d9d7f4c8f4a0fe578392cb012a0bdbfcdec74283 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Fri, 3 May 2019 16:04:04 -0400 Subject: [PATCH] FIX: house ads randomized instead of showing evenly --- assets/javascripts/discourse/components/house-ad.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/discourse/components/house-ad.js.es6 b/assets/javascripts/discourse/components/house-ad.js.es6 index 7434a3e..d9a1470 100644 --- a/assets/javascripts/discourse/components/house-ad.js.es6 +++ b/assets/javascripts/discourse/components/house-ad.js.es6 @@ -94,7 +94,7 @@ export default AdComponent.extend({ return; } - if (!adIndex["topic_list_top"]) { + if (adIndex.topic_list_top === null) { // start at a random spot in the ad inventory Object.keys(adIndex).forEach(placement => { const adNames = this.adsNamesForSlot(placement);