This commit is contained in:
Andrea Vos 2024-05-15 22:17:18 +02:00
parent 55a47fb42f
commit d9f35e7c0f

View File

@ -75,7 +75,8 @@ export const adsInternal = [
export default (locale) => {
const adsInternalPerPlaceholder = {};
for (const ad of adsInternal) {
if (ad.enabled === false || (ad.locale !== null && ad.locale !== locale)) {
const rightLocale = ad.locale === null || ad.locale === locale;
if (ad.enabled === false || !rightLocale) {
continue;
}