Skip to content

Commit 9d1f025

Browse files
committed
Filter L2A button from galleries, picture, or liveblog content
1 parent 518ddba commit 9d1f025

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dotcom-rendering/src/components/ArticleMeta.apps.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ export const ArticleMetaApps = ({
254254
const isImmersiveOrAnalysisWithMultipleAuthors =
255255
(isAnalysis || isImmersive) && !!byline && isUndefined(soleContributor);
256256

257+
const shouldShowListenToArticleButton =
258+
!!pageId && !(isLiveBlog || isPicture || isGallery);
259+
257260
return (
258261
<div
259262
className={
@@ -365,7 +368,7 @@ export const ArticleMetaApps = ({
365368
</MetaGridBranding>
366369
)}
367370
</div>
368-
{pageId !== undefined && (
371+
{shouldShowListenToArticleButton && (
369372
<Island priority="feature" defer={{ until: 'visible' }}>
370373
<ListenToArticle articleId={pageId} />
371374
</Island>

0 commit comments

Comments
 (0)