Skip to content

Commit 3ee0765

Browse files
committed
Move branded container rule to betaFrontRules
1 parent fbb936a commit 3ee0765

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dotcom-rendering/src/lib/getFrontsAdPositions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,12 @@ const canInsertMobileAd =
7979
* - Is NOT the slot used for the merch high position
8080
* - Is NOT a thrasher if it is the first container
8181
* - Is NOT before a thrasher
82-
* - Is NOT before a branded container
8382
* - Is NOT the most viewed container
8483
*/
8584
const rules = [
8685
!isMerchHighPosition(index, merchHighPosition),
8786
!isFirstContainerAndThrasher(collection.collectionType, index),
8887
!isBeforeThrasher(index, collections),
89-
!isBeforeBrandedContainer(index, collections),
9088
!isMostViewedContainer(collection),
9189
];
9290

@@ -95,6 +93,8 @@ const canInsertMobileAd =
9593
// Allow insertion after first container at any time but for all other situations,
9694
// prevent insertion before a secondary level container
9795
index === 0 || !isBeforeSecondaryLevelContainer(index, collections),
96+
// Prevent insertion before a branded container
97+
!isBeforeBrandedContainer(index, collections),
9898
];
9999

100100
// Ad insertion is possible if every condition is met

0 commit comments

Comments
 (0)