Skip to content

Commit

Permalink
Fix duplicate event
Browse files Browse the repository at this point in the history
  • Loading branch information
arunshenoy99 committed Aug 1, 2024
1 parent 60a559a commit c905b71
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/OnboardingSPA/components/StartOptions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand All @@ -107,7 +102,7 @@ const StartOptions = ( { questionnaire, oldFlow, largeOption, smallOptions } ) =
window.open( hireProUrl, '_blank' );
break;
case 'migration':
flowForEvent = 'MIGRATION';
flowForEvent = 'MIGRATE';
handleMigration();
break;
}
Expand Down

0 comments on commit c905b71

Please sign in to comment.