@@ -15,8 +15,41 @@ const canShow = ({
1515 tags,
1616 isPaidContent,
1717 isPreview,
18- } : CanShowGateProps ) : Promise < boolean > =>
19- Promise . resolve (
18+ } : CanShowGateProps ) : Promise < boolean > => {
19+ // 31st July 2025
20+ // author: Pascal
21+ // Investigating broken behavior of this function
22+
23+ console . log ( '[60f7e8f7] investigation' ) ;
24+ console . log ( `isSignedIn: ${ isSignedIn } ` ) ;
25+ console . log ( `!isSignedIn: ${ ! isSignedIn } ` ) ;
26+ console . log ( `currentTest.variant: ${ currentTest . variant } ` ) ;
27+ console . log ( `currentTest.name: ${ currentTest . name } ` ) ;
28+ console . log (
29+ `hasUserDismissedGate: ${ hasUserDismissedGate (
30+ currentTest . variant ,
31+ currentTest . name ,
32+ ) } `,
33+ ) ;
34+ console . log (
35+ `!hasUserDismissedGate: ${ ! hasUserDismissedGate (
36+ currentTest . variant ,
37+ currentTest . name ,
38+ ) } `,
39+ ) ;
40+ console . log ( `isNPageOrHigherPageView: ${ isNPageOrHigherPageView ( 3 ) } ` ) ;
41+ console . log ( `contentType: ${ contentType } ` ) ;
42+ console . log ( `isValidContentType: ${ isValidContentType ( contentType ) } ` ) ;
43+ console . log ( `sectionId: ${ sectionId } ` ) ;
44+ console . log ( `isValidSection: ${ isValidSection ( sectionId ) } ` ) ;
45+ console . log ( `tags: ${ JSON . stringify ( tags ) } ` ) ;
46+ console . log ( `isValidTag: ${ isValidTag ( tags ) } ` ) ;
47+ console . log ( `isPaidContent: ${ isPaidContent } ` ) ;
48+ console . log ( `!isPaidContent: ${ ! isPaidContent } ` ) ;
49+ console . log ( `isPreview: ${ isPreview } ` ) ;
50+ console . log ( `!isPreview: ${ ! isPreview } ` ) ;
51+
52+ return Promise . resolve (
2053 ! isSignedIn &&
2154 ! hasUserDismissedGate ( currentTest . variant , currentTest . name ) &&
2255 isNPageOrHigherPageView ( 3 ) &&
@@ -28,6 +61,7 @@ const canShow = ({
2861 // hide the sign in gate on internal tools preview
2962 ! isPreview ,
3063 ) ;
64+ } ;
3165
3266export const signInGateComponent : SignInGateComponent = {
3367 canShow,
0 commit comments