Skip to content

Commit c351e9a

Browse files
authored
Merge pull request #13526 from guardian/ph-20250305-0934-auxia
auxia experiment: prevent calling Auxia in the case of SignedIn users
2 parents bec8a32 + 20cf8e0 commit c351e9a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -656,13 +656,15 @@ const SignInGateSelectorAuxia = ({
656656

657657
useOnce(() => {
658658
void (async () => {
659-
const data = await buildAuxiaGateDisplayData(
660-
contributionsServiceUrl,
661-
pageId,
662-
editionId,
663-
);
664-
if (data !== undefined) {
665-
setAuxiaGateDisplayData(data);
659+
if (!isSignedIn) {
660+
const data = await buildAuxiaGateDisplayData(
661+
contributionsServiceUrl,
662+
pageId,
663+
editionId,
664+
);
665+
if (data !== undefined) {
666+
setAuxiaGateDisplayData(data);
667+
}
666668
}
667669
})().catch((error) => {
668670
console.error('Error fetching Auxia display data:', error);

0 commit comments

Comments
 (0)