merch banner on all locales

This commit is contained in:
Andrea Vos 2024-05-15 21:58:19 +02:00
parent 202dd19d3c
commit 95e9f51774

View File

@ -55,7 +55,7 @@ export const adsInternal = [
// },
{
enabled: true,
locale: 'en',
locale: null,
image: 'merch-1.png',
placeholders: ['content-0', 'content-mobile-0'],
link: 'https://shop.pronouns.page',
@ -63,7 +63,7 @@ export const adsInternal = [
},
{
enabled: true,
locale: 'en',
locale: null,
image: 'merch-1.png',
placeholders: ['header'],
link: 'https://shop.pronouns.page',
@ -75,7 +75,7 @@ export const adsInternal = [
export default (locale) => {
const adsInternalPerPlaceholder = {};
for (const ad of adsInternal) {
if (ad.enabled === false || ad.locale !== locale) {
if (ad.enabled === false || (ad.locale !== null && ad.locale !== locale)) {
continue;
}