File tree Expand file tree Collapse file tree 2 files changed +22
-20
lines changed
dotcom-rendering/src/components/SignInGate Expand file tree Collapse file tree 2 files changed +22
-20
lines changed Original file line number Diff line number Diff line change @@ -80,25 +80,27 @@ export const SignInGateAuxia = ({
80
80
>
81
81
{ firstCtaName }
82
82
</ LinkButton >
83
- < Button
84
- data-testid = "sign-in-gate-main_dismiss"
85
- data-ignore = "global-link-styling"
86
- cssOverrides = { laterButton }
87
- priority = "subdued"
88
- size = "small"
89
- onClick = { async ( ) => {
90
- dismissGate ( ) ;
91
- trackLink (
92
- ophanComponentId ,
93
- 'not-now' ,
94
- renderingTarget ,
95
- abTest ,
96
- ) ;
97
- await logTreatmentInteractionCall ( 'DISMISSED' , '' ) ;
98
- } }
99
- >
100
- { secondCtaName }
101
- </ Button >
83
+ { ! ! secondCtaName && (
84
+ < Button
85
+ data-testid = "sign-in-gate-main_dismiss"
86
+ data-ignore = "global-link-styling"
87
+ cssOverrides = { laterButton }
88
+ priority = "subdued"
89
+ size = "small"
90
+ onClick = { async ( ) => {
91
+ dismissGate ( ) ;
92
+ trackLink (
93
+ ophanComponentId ,
94
+ 'not-now' ,
95
+ renderingTarget ,
96
+ abTest ,
97
+ ) ;
98
+ await logTreatmentInteractionCall ( 'DISMISSED' , '' ) ;
99
+ } }
100
+ >
101
+ { secondCtaName }
102
+ </ Button >
103
+ ) }
102
104
</ div >
103
105
104
106
< p css = { [ bodySeparator , bodyBold , signInHeader ] } >
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ export interface TreatmentContentDecoded {
95
95
body : string ;
96
96
first_cta_name : string ;
97
97
first_cta_link : string ;
98
- second_cta_name : string ;
98
+ second_cta_name ? : string ;
99
99
}
100
100
101
101
export interface AuxiaAPIResponseDataUserTreatment {
You can’t perform that action at this time.
0 commit comments