Fix ads near recommended on Premium

This commit is contained in:
Thomas Zarebczan 2022-05-27 15:28:09 -04:00
parent 4d7f1c1d42
commit f56e552764
No known key found for this signature in database
GPG key ID: 767B41E1BB7346F2

View file

@ -186,8 +186,10 @@ function HomePage(props: Props) {
label={__('View More')} label={__('View More')}
/> />
)} )}
{isMobileScreen && <AdsBanner key={`${currentTheme}:${title}`} />} {isMobileScreen && !hasPremiumPlus && <AdsBanner key={`${currentTheme}:${title}`} />}
{!isMobileScreen && (index === 0 || index % 2 === 0) && <AdsBanner key={`${currentTheme}:${title}`} />} {!isMobileScreen && !hasPremiumPlus && (index === 0 || index % 2 === 0) && (
<AdsBanner key={`${currentTheme}:${title}`} />
)}
</> </>
)} )}
</div> </div>