@@ -453,11 +453,11 @@ interface ShowSignInGateAuxiaProps {
453
453
const decideIsSupporter = ( ) : boolean => {
454
454
// nb: We will not be calling the Auxia API if the user is signed in, so we can set isSignedIn to false.
455
455
const isSignedIn = false ;
456
- const is_supporter = shouldHideSupportMessaging ( isSignedIn ) ;
457
- if ( is_supporter === 'Pending' ) {
456
+ const isSupporter = shouldHideSupportMessaging ( isSignedIn ) ;
457
+ if ( isSupporter === 'Pending' ) {
458
458
return true ;
459
459
}
460
- return is_supporter ;
460
+ return isSupporter ;
461
461
} ;
462
462
463
463
const decideDailyArticleCount = ( ) : number => {
@@ -478,13 +478,13 @@ const decideAuxiaProxyReaderPersonalData =
478
478
async ( ) : Promise < AuxiaGateReaderPersonalData > => {
479
479
const browserId =
480
480
getCookie ( { name : 'bwid' , shouldMemoize : true } ) ?? '' ;
481
- const daily_article_count = decideDailyArticleCount ( ) ;
481
+ const dailyArticleCount = decideDailyArticleCount ( ) ;
482
482
const hasConsent = await hasCmpConsentForBrowserId ( ) ;
483
- const is_supporter = decideIsSupporter ( ) ;
483
+ const isSupporter = decideIsSupporter ( ) ;
484
484
const data = {
485
485
browserId : hasConsent ? browserId : undefined ,
486
- daily_article_count ,
487
- is_supporter ,
486
+ dailyArticleCount ,
487
+ isSupporter ,
488
488
} ;
489
489
return Promise . resolve ( data ) ;
490
490
} ;
@@ -493,21 +493,21 @@ const fetchProxyGetTreatments = async (
493
493
contributionsServiceUrl : string ,
494
494
pageId : string ,
495
495
browserId : string | undefined ,
496
- is_supporter : boolean ,
497
- daily_article_count : number ,
496
+ isSupporter : boolean ,
497
+ dailyArticleCount : number ,
498
498
) : Promise < AuxiaProxyGetTreatmentsResponse > => {
499
499
// pageId example: 'money/2017/mar/10/ministers-to-criminalise-use-of-ticket-tout-harvesting-software'
500
- const article_identifier = `www.theguardian.com/${ pageId } ` ;
500
+ const articleIdentifier = `www.theguardian.com/${ pageId } ` ;
501
501
502
502
const url = `${ contributionsServiceUrl } /auxia/get-treatments` ;
503
503
const headers = {
504
504
'Content-Type' : 'application/json' ,
505
505
} ;
506
506
const payload : AuxiaProxyGetTreatmentsPayload = {
507
507
browserId,
508
- is_supporter ,
509
- daily_article_count ,
510
- article_identifier ,
508
+ isSupporter ,
509
+ dailyArticleCount ,
510
+ articleIdentifier ,
511
511
} ;
512
512
const params = {
513
513
method : 'POST' ,
@@ -531,8 +531,8 @@ const buildAuxiaGateDisplayData = async (
531
531
contributionsServiceUrl ,
532
532
pageId ,
533
533
readerPersonalData . browserId ,
534
- readerPersonalData . is_supporter ,
535
- readerPersonalData . daily_article_count ,
534
+ readerPersonalData . isSupporter ,
535
+ readerPersonalData . dailyArticleCount ,
536
536
) ;
537
537
if ( response . status && response . data ) {
538
538
const answer = {
0 commit comments