Skip to content

Commit 1f67b6f

Browse files
committed
prevent browserId equal to an empty string
1 parent 2119981 commit 1f67b6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ const decideDailyArticleCount = (): number => {
486486
const decideAuxiaProxyReaderPersonalData =
487487
async (): Promise<AuxiaGateReaderPersonalData> => {
488488
const browserId =
489-
getCookie({ name: 'bwid', shouldMemoize: true }) ?? '';
489+
getCookie({ name: 'bwid', shouldMemoize: true }) ?? undefined;
490490
const dailyArticleCount = decideDailyArticleCount();
491491
const hasConsent = await hasCmpConsentForBrowserId();
492492
const isSupporter = decideIsSupporter();

0 commit comments

Comments
 (0)