We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0939929 commit c2cdf87Copy full SHA for c2cdf87
dotcom-rendering/src/components/ListenToArticle.importable.tsx
@@ -18,9 +18,8 @@ export const ListenToArticle = ({ articleId }: Props) => {
18
getListenToArticleClient().isAvailable(articleId),
19
getListenToArticleClient().isPlaying(articleId),
20
])
21
- .then(() =>
22
- // setShowButton(isAvailable && !isPlaying),
23
- setShowButton(false),
+ .then(([isAvailable, isPlaying]) =>
+ setShowButton(isAvailable && !isPlaying),
24
)
25
.catch((error) => {
26
console.error(
0 commit comments