File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -332,20 +332,18 @@ const fetchProxyGetTreatments = async (
332332
333333const decideShouldNotServeMandatory = ( ) : boolean => {
334334 // Return a boolean indicating whether or not we accept mandatory gates for this call.
335- // If the answer is `false ` this doesn't decide whether the gate should be displayed or not,
336- // it only means that if a gate is returned, then it must be mandatory.
335+ // If the answer is `true ` this doesn't decide whether the gate should be displayed or not,
336+ // it only means that if a gate is returned, then it must not be mandatory.
337337
338338 // Now the question is how do we decide the answer ?
339339 // We return false if the following query parameter is present in the url:
340340 // utm_source=newsshowcase
341341
342342 // This may be extended in the future.
343343
344- // const params = new URLSearchParams(window.location.search);
345- // const value: string | null = params.get('utm_source');
346- // return value === 'newsshowcase';
347-
348- return false ;
344+ const params = new URLSearchParams ( window . location . search ) ;
345+ const value : string | null = params . get ( 'utm_source' ) ;
346+ return value === 'newsshowcase' ;
349347} ;
350348
351349const decideMustShowDefaultGate = ( ) : boolean => {
You can’t perform that action at this time.
0 commit comments