From c905b71c58d265a82a9f5af123fea21c6428f9dc Mon Sep 17 00:00:00 2001 From: arunshenoy99 Date: Thu, 1 Aug 2024 18:37:50 +0530 Subject: [PATCH] Fix duplicate event --- src/OnboardingSPA/components/StartOptions/index.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/OnboardingSPA/components/StartOptions/index.js b/src/OnboardingSPA/components/StartOptions/index.js index ef81e9121..7c0c17c09 100644 --- a/src/OnboardingSPA/components/StartOptions/index.js +++ b/src/OnboardingSPA/components/StartOptions/index.js @@ -79,12 +79,7 @@ const StartOptions = ( { questionnaire, oldFlow, largeOption, smallOptions } ) = const updates = injectMigrationStep( allSteps, stepTheFork ); updateAllSteps( updates.allSteps ); } - trackOnboardingEvent( - new OnboardingEvent( - ACTION_SITEGEN_FORK_OPTION_SELECTED, - 'MIGRATE' - ) - ); + navigate( stepSiteGenMigration.path ); } else { window.open( migrationUrl, '_blank' ); @@ -107,7 +102,7 @@ const StartOptions = ( { questionnaire, oldFlow, largeOption, smallOptions } ) = window.open( hireProUrl, '_blank' ); break; case 'migration': - flowForEvent = 'MIGRATION'; + flowForEvent = 'MIGRATE'; handleMigration(); break; }