File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments