Skip to content

Commit 128fad6

Browse files
committed
Add condition for variant 0% test
1 parent 6f8eabc commit 128fad6

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

dotcom-rendering/src/components/SlotBodyEnd.island.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,17 @@ export const SlotBodyEnd = ({
132132
useState<Promise<WeeklyArticleHistory | undefined>>();
133133

134134
const isInUS = countryCode === 'US';
135+
const isInArticleEndHeaderBiddingTest = abTests?.isUserInTestGroup(
136+
'commercial-article-end-header-bidding',
137+
'variant',
138+
);
135139

136-
const showArticleEndSlot = renderAds && !isLabs && isInUS && articleEndSlot;
140+
const showArticleEndSlot =
141+
renderAds &&
142+
!isLabs &&
143+
isInUS &&
144+
articleEndSlot &&
145+
isInArticleEndHeaderBiddingTest;
137146

138147
useEffect(() => {
139148
setAsyncArticleCount(

0 commit comments

Comments
 (0)