From 7e22ee2b16b883e9357bb3e0cfff8e18383cc977 Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Fri, 5 Apr 2024 12:15:06 +0530 Subject: [PATCH] Fix Issues --- src/OnboardingSPA/steps/TheFork/index.js | 34 ++++++++++++------------ 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/OnboardingSPA/steps/TheFork/index.js b/src/OnboardingSPA/steps/TheFork/index.js index 935d8cfa4..2133c0ed0 100644 --- a/src/OnboardingSPA/steps/TheFork/index.js +++ b/src/OnboardingSPA/steps/TheFork/index.js @@ -81,24 +81,24 @@ const TheFork = () => { theForkExperimentVersion; setCurrentOnboardingData( currentData ); await setFlow( currentData ); - } - const experimentVersionNames = { - 1: 'control', - 2: 'position', - 3: 'badge', - 4: 'position_badge', - }; + const experimentVersionNames = { + 1: 'control', + 2: 'position', + 3: 'badge', + 4: 'position_badge', + }; - // Send an event for the experiment version shown to the user. - trackOnboardingEvent( - new OnboardingEvent( - ACTION_SITEGEN_FORK_AI_EXPERIMENT, - experimentVersionNames[ theForkExperimentVersion ], - null, - null, - CATEGORY_EXPERIMENT - ) - ); + // Send an event for the experiment version shown to the user. + sendOnboardingEvent( + new OnboardingEvent( + ACTION_SITEGEN_FORK_AI_EXPERIMENT, + experimentVersionNames[ theForkExperimentVersion ], + null, + null, + CATEGORY_EXPERIMENT + ) + ); + } }; const oldFlow = window.nfdOnboarding?.oldFlow