diff --git a/dotcom-rendering/src/components/ListenToArticle.importable.tsx b/dotcom-rendering/src/components/ListenToArticle.importable.tsx index 81ede9e00f0..de886cbc5b7 100644 --- a/dotcom-rendering/src/components/ListenToArticle.importable.tsx +++ b/dotcom-rendering/src/components/ListenToArticle.importable.tsx @@ -1,9 +1,6 @@ import { log } from '@guardian/libs'; import { useEffect, useState } from 'react'; -import { - getListenToArticleClient, - getNativeABTestingClient, -} from '../lib/bridgetApi'; +import { getListenToArticleClient } from '../lib/bridgetApi'; import { useIsBridgetCompatible } from '../lib/useIsBridgetCompatible'; import { ListenToArticleButton } from './ListenToArticleButton'; @@ -37,39 +34,19 @@ export const ListenToArticle = ({ articleId }: Props) => { useEffect(() => { if (isBridgetCompatible) { Promise.all([ - // AB TESTING native - getNativeABTestingClient().getParticipations(), getListenToArticleClient().isAvailable(articleId), getListenToArticleClient().isPlaying(articleId), getListenToArticleClient().getAudioDurationSeconds(articleId), ]) - .then( - ([ - abParticipations, - isAvailable, - isPlaying, - durationSeconds, - ]) => { - // AB TESTING native start - const variant = abParticipations.get( - 'l2a_article_button_test', - ); - if (variant === 'no-button') { - setShowButton(false); - } else if (variant === 'with-duration') { - setAudioDurationSeconds( - typeof durationSeconds === 'number' && - durationSeconds > 0 - ? durationSeconds - : undefined, - ); - setShowButton(isAvailable && !isPlaying); - } else if (variant === 'without-duration') { - setShowButton(isAvailable && !isPlaying); - } - // AB TESTING native ends - }, - ) + .then(([isAvailable, isPlaying, durationSeconds]) => { + setAudioDurationSeconds( + typeof durationSeconds === 'number' && + durationSeconds > 0 + ? durationSeconds + : undefined, + ); + setShowButton(isAvailable && !isPlaying); + }) .catch((error) => { console.error( 'Error fetching article audio status: ',