@@ -711,7 +711,7 @@ const SignInGateSelectorAuxia = ({
711
711
data . auxiaData . userTreatment ?. treatmentId ;
712
712
if ( treatmentId ) {
713
713
// Record the fact that Auxia has returned a treatment. This is not a VIEW event, so we use the RETURN action here
714
- await submitComponentEventTracking (
714
+ void submitComponentEventTracking (
715
715
{
716
716
component : {
717
717
componentType : 'SIGN_IN_GATE' ,
@@ -811,28 +811,27 @@ const ShowSignInGateAuxia = ({
811
811
const personaliseSignInGateAfterCheckoutSwitch = undefined ;
812
812
813
813
useOnce ( ( ) => {
814
- void ( async ( ) => {
815
- await auxiaLogTreatmentInteraction (
816
- contributionsServiceUrl ,
817
- userTreatment ,
818
- 'VIEWED' ,
819
- '' ,
820
- browserId ,
821
- ) ;
822
- await submitComponentEventTracking (
823
- {
824
- component : {
825
- componentType : 'SIGN_IN_GATE' ,
826
- id : treatmentId ,
827
- } ,
828
- action : 'VIEW' ,
829
- abTest : buildAbTestTrackingAuxiaVariant ( treatmentId ) ,
830
- } ,
831
- renderingTarget ,
832
- ) ;
833
- } ) ( ) . catch ( ( error ) => {
814
+ void auxiaLogTreatmentInteraction (
815
+ contributionsServiceUrl ,
816
+ userTreatment ,
817
+ 'VIEWED' ,
818
+ '' ,
819
+ browserId ,
820
+ ) . catch ( ( error ) => {
834
821
console . error ( 'Failed to log treatment interaction:' , error ) ;
835
822
} ) ;
823
+
824
+ void submitComponentEventTracking (
825
+ {
826
+ component : {
827
+ componentType : 'SIGN_IN_GATE' ,
828
+ id : treatmentId ,
829
+ } ,
830
+ action : 'VIEW' ,
831
+ abTest : buildAbTestTrackingAuxiaVariant ( treatmentId ) ,
832
+ } ,
833
+ renderingTarget ,
834
+ ) ;
836
835
} , [ componentId ] ) ;
837
836
838
837
return (
0 commit comments