Skip to content

Commit 6eb7cf8

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

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { css } from '@emotion/react';
22
import { isUndefined } from '@guardian/libs';
3-
import { from, space, until } from '@guardian/source/foundations';
43
import { StraightLines } from '@guardian/source-development-kitchen/react-components';
4+
import { from, space, until } from '@guardian/source/foundations';
55
import type { ReactNode } from 'react';
66
import { grid } from '../grid';
77
import { interactiveLegacyClasses } from '../layouts/lib/interactiveLegacyStyling';
@@ -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)