@@ -15,8 +15,41 @@ const canShow = ({
15
15
tags,
16
16
isPaidContent,
17
17
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 (
20
53
! isSignedIn &&
21
54
! hasUserDismissedGate ( currentTest . variant , currentTest . name ) &&
22
55
isNPageOrHigherPageView ( 3 ) &&
@@ -28,6 +61,7 @@ const canShow = ({
28
61
// hide the sign in gate on internal tools preview
29
62
! isPreview ,
30
63
) ;
64
+ } ;
31
65
32
66
export const signInGateComponent : SignInGateComponent = {
33
67
canShow,
0 commit comments