Skip to content

Commit b34837e

Browse files
committed
release utm_source=newsshowcase
1 parent c9cabe5 commit b34837e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -332,20 +332,18 @@ const fetchProxyGetTreatments = async (
332332

333333
const 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

351349
const decideMustShowDefaultGate = (): boolean => {

0 commit comments

Comments
 (0)