Skip to content

Commit c2cdf87

Browse files
committed
Enable L2A button
1 parent 0939929 commit c2cdf87

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dotcom-rendering/src/components/ListenToArticle.importable.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ export const ListenToArticle = ({ articleId }: Props) => {
1818
getListenToArticleClient().isAvailable(articleId),
1919
getListenToArticleClient().isPlaying(articleId),
2020
])
21-
.then(() =>
22-
// setShowButton(isAvailable && !isPlaying),
23-
setShowButton(false),
21+
.then(([isAvailable, isPlaying]) =>
22+
setShowButton(isAvailable && !isPlaying),
2423
)
2524
.catch((error) => {
2625
console.error(

0 commit comments

Comments
 (0)