Skip to content

Commit 3197cd6

Browse files
fixing lint
1 parent 8e2e7f9 commit 3197cd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const EnhanceAffiliateLinks = () => {
6161
console.log('urlParams:', urlParams.toString());
6262

6363
const referrerURLParams = new URLSearchParams(
64-
document.referrer.split('?')[1] || '',
64+
document.referrer.split('?')[1] ?? '',
6565
);
6666
console.log('referrerURLParams:', referrerURLParams.toString());
6767

@@ -72,7 +72,7 @@ export const EnhanceAffiliateLinks = () => {
7272
console.log('utmFromReferrer:', utmParamsFromReferrer);
7373

7474
const utmParamsString =
75-
utmParamsFromArticleURL || utmParamsFromReferrer || '';
75+
utmParamsFromArticleURL ?? utmParamsFromReferrer ?? '';
7676
console.log('final utmParamsString:', utmParamsString);
7777

7878
for (const link of allLinksOnPage) {

0 commit comments

Comments
 (0)