[web] sponsorships/banner: change to 2nd position always

This commit is contained in:
Yangshun 2025-08-01 09:22:47 +08:00
parent 805ea97d93
commit e0dd48f625
1 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ function MarketingMessageImpl({
}, },
{ {
onSuccess() { onSuccess() {
const rotatedBanners: Array<BannerType> = ['ad', 'swag']; const rotatedBanners: Array<BannerType> = ['swag'];
if (!isProjectsPremium) { if (!isProjectsPremium) {
rotatedBanners.push('projects'); rotatedBanners.push('projects');
@ -76,8 +76,8 @@ function MarketingMessageImpl({
setBanners( setBanners(
isInterviewsPremium isInterviewsPremium
? shuffledBanners ? [shuffledBanners[0], 'ad', ...shuffledBanners.slice(1)]
: ['social', ...shuffledBanners], : ['social', 'ad', ...shuffledBanners],
); );
}, },
}, },