@@ -67,23 +67,18 @@ export const SignInGateAuxia = ({
67
67
< button
68
68
data-testid = "sign-in-gate-main_privacy"
69
69
css = { privacyLink }
70
- onClick = { ( ) => {
70
+ onClick = { async ( ) => {
71
71
cmp . showPrivacyManager ( ) ;
72
72
trackLink (
73
73
ophanComponentId ,
74
74
'privacy' ,
75
75
renderingTarget ,
76
76
abTest ,
77
77
) ;
78
- logTreatmentInteractionCall (
78
+ await logTreatmentInteractionCall (
79
79
'CLICKED' ,
80
80
'PRIVACY-BUTTON' ,
81
- ) . catch ( ( error ) => {
82
- console . error (
83
- 'Failed to log treatment interaction:' ,
84
- error ,
85
- ) ;
86
- } ) ;
81
+ ) ;
87
82
} }
88
83
>
89
84
privacy settings
@@ -99,22 +94,17 @@ export const SignInGateAuxia = ({
99
94
priority = "primary"
100
95
size = "small"
101
96
href = { firstCtaLink }
102
- onClick = { ( ) => {
97
+ onClick = { async ( ) => {
103
98
trackLink (
104
99
ophanComponentId ,
105
100
'register-link' ,
106
101
renderingTarget ,
107
102
abTest ,
108
103
) ;
109
- logTreatmentInteractionCall (
104
+ await logTreatmentInteractionCall (
110
105
'CLICKED' ,
111
106
'REGISTER-LINK' ,
112
- ) . catch ( ( error ) => {
113
- console . error (
114
- 'Failed to log treatment interaction:' ,
115
- error ,
116
- ) ;
117
- } ) ;
107
+ ) ;
118
108
} }
119
109
>
120
110
{ firstCtaName }
@@ -125,22 +115,15 @@ export const SignInGateAuxia = ({
125
115
cssOverrides = { laterButton }
126
116
priority = "subdued"
127
117
size = "small"
128
- onClick = { ( ) => {
118
+ onClick = { async ( ) => {
129
119
dismissGate ( ) ;
130
120
trackLink (
131
121
ophanComponentId ,
132
122
'not-now' ,
133
123
renderingTarget ,
134
124
abTest ,
135
125
) ;
136
- logTreatmentInteractionCall ( 'DISMISSED' , '' ) . catch (
137
- ( error ) => {
138
- console . error (
139
- 'Failed to log treatment interaction:' ,
140
- error ,
141
- ) ;
142
- } ,
143
- ) ;
126
+ await logTreatmentInteractionCall ( 'DISMISSED' , '' ) ;
144
127
} }
145
128
>
146
129
{ secondCtaName }
@@ -156,22 +139,17 @@ export const SignInGateAuxia = ({
156
139
data-ignore = "global-link-styling"
157
140
cssOverrides = { signInLink }
158
141
href = { signInUrl }
159
- onClick = { ( ) => {
142
+ onClick = { async ( ) => {
160
143
trackLink (
161
144
ophanComponentId ,
162
145
'sign-in-link' ,
163
146
renderingTarget ,
164
147
abTest ,
165
148
) ;
166
- logTreatmentInteractionCall (
149
+ await logTreatmentInteractionCall (
167
150
'CLICKED' ,
168
151
'SIGN-IN-LINK' ,
169
- ) . catch ( ( error ) => {
170
- console . error (
171
- 'Failed to log treatment interaction:' ,
172
- error ,
173
- ) ;
174
- } ) ;
152
+ ) ;
175
153
} }
176
154
>
177
155
Sign In
@@ -181,22 +159,17 @@ export const SignInGateAuxia = ({
181
159
< Link
182
160
data-ignore = "global-link-styling"
183
161
href = { `${ guUrl } /membership/2019/dec/20/signing-in-to-the-guardian` }
184
- onClick = { ( ) => {
162
+ onClick = { async ( ) => {
185
163
trackLink (
186
164
ophanComponentId ,
187
165
'how-link' ,
188
166
renderingTarget ,
189
167
abTest ,
190
168
) ;
191
- logTreatmentInteractionCall (
169
+ await logTreatmentInteractionCall (
192
170
'CLICKED' ,
193
171
'HOW-TO-LINK' ,
194
- ) . catch ( ( error ) => {
195
- console . error (
196
- 'Failed to log treatment interaction:' ,
197
- error ,
198
- ) ;
199
- } ) ;
172
+ ) ;
200
173
} }
201
174
>
202
175
Why register & how does it help ?
@@ -205,22 +178,17 @@ export const SignInGateAuxia = ({
205
178
< Link
206
179
data-ignore = "global-link-styling"
207
180
href = { `${ guUrl } /info/2014/nov/03/why-your-data-matters-to-us-full-text` }
208
- onClick = { ( ) => {
181
+ onClick = { async ( ) => {
209
182
trackLink (
210
183
ophanComponentId ,
211
184
'why-link' ,
212
185
renderingTarget ,
213
186
abTest ,
214
187
) ;
215
- logTreatmentInteractionCall (
188
+ await logTreatmentInteractionCall (
216
189
'CLICKED' ,
217
190
'WHY-LINK' ,
218
- ) . catch ( ( error ) => {
219
- console . error (
220
- 'Failed to log treatment interaction:' ,
221
- error ,
222
- ) ;
223
- } ) ;
191
+ ) ;
224
192
} }
225
193
>
226
194
How will my information & data be used ?
@@ -229,22 +197,17 @@ export const SignInGateAuxia = ({
229
197
< Link
230
198
data-ignore = "global-link-styling"
231
199
href = { `${ guUrl } /help/identity-faq` }
232
- onClick = { ( ) => {
200
+ onClick = { async ( ) => {
233
201
trackLink (
234
202
ophanComponentId ,
235
203
'help-link' ,
236
204
renderingTarget ,
237
205
abTest ,
238
206
) ;
239
- logTreatmentInteractionCall (
207
+ await logTreatmentInteractionCall (
240
208
'CLICKED' ,
241
209
'HELP-LINK' ,
242
- ) . catch ( ( error ) => {
243
- console . error (
244
- 'Failed to log treatment interaction:' ,
245
- error ,
246
- ) ;
247
- } ) ;
210
+ ) ;
248
211
} }
249
212
>
250
213
Get help with registering or signing in
0 commit comments