@@ -290,7 +290,7 @@ const fetchProxyGetTreatments = async (
290290 mvtId : number ,
291291 should_show_legacy_gate_tmp : boolean ,
292292 hasConsented : boolean ,
293- shouldNotServeMandatory : boolean ,
293+ shouldServeDismissible : boolean ,
294294 mustShowDefaultGate : boolean ,
295295) : Promise < AuxiaProxyGetTreatmentsResponse > => {
296296 // pageId example: 'money/2017/mar/10/ministers-to-criminalise-use-of-ticket-tout-harvesting-software'
@@ -314,7 +314,7 @@ const fetchProxyGetTreatments = async (
314314 mvtId,
315315 should_show_legacy_gate_tmp,
316316 hasConsented,
317- shouldNotServeMandatory ,
317+ shouldServeDismissible ,
318318 mustShowDefaultGate,
319319 } ;
320320 const params = {
@@ -330,7 +330,7 @@ const fetchProxyGetTreatments = async (
330330 return Promise . resolve ( response ) ;
331331} ;
332332
333- const decideShouldNotServeMandatory = ( ) : boolean => {
333+ const decideShouldServeDismissible = ( ) : boolean => {
334334 // Return a boolean indicating whether or not we accept mandatory gates for this call.
335335 // If the answer is `false` this doesn't decide whether the gate should be displayed or not,
336336 // it only means that if a gate is returned, then it must be mandatory.
@@ -400,7 +400,7 @@ const buildAuxiaGateDisplayData = async (
400400 ) ;
401401 }
402402
403- const shouldNotServeMandatory = decideShouldNotServeMandatory ( ) ;
403+ const shouldServeDismissible = decideShouldServeDismissible ( ) ;
404404
405405 const mustShowDefaultGate = decideMustShowDefaultGate ( ) ;
406406
@@ -419,7 +419,7 @@ const buildAuxiaGateDisplayData = async (
419419 readerPersonalData . mvtId ,
420420 should_show_legacy_gate_tmp ,
421421 readerPersonalData . hasConsented ,
422- shouldNotServeMandatory ,
422+ shouldServeDismissible ,
423423 mustShowDefaultGate ,
424424 ) ;
425425
0 commit comments