From fb8993cf047033177e3a4ff5197ac72bacad6c42 Mon Sep 17 00:00:00 2001 From: Dale du Preez Date: Thu, 23 May 2024 23:07:20 +0200 Subject: [PATCH] Some cleanup --- .../landing/stepper/declarative-flow/internals/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/landing/stepper/declarative-flow/internals/index.tsx b/client/landing/stepper/declarative-flow/internals/index.tsx index 2d3c31985191c1..37e9a7f47d2eab 100644 --- a/client/landing/stepper/declarative-flow/internals/index.tsx +++ b/client/landing/stepper/declarative-flow/internals/index.tsx @@ -11,6 +11,7 @@ import React, { useEffect, useCallback, useMemo, Suspense, lazy } from 'react'; import Modal from 'react-modal'; import { Navigate, Route, Routes, generatePath, useNavigate, useLocation } from 'react-router-dom'; import DocumentHead from 'calypso/components/data/document-head'; +import { recordSubmitStep } from 'calypso/landing/stepper/declarative-flow/internals/analytics/record-submit-step'; import { STEPS } from 'calypso/landing/stepper/declarative-flow/internals/steps'; import { STEPPER_INTERNAL_STORE } from 'calypso/landing/stepper/stores'; import { recordPageView } from 'calypso/lib/analytics/page-view'; @@ -102,6 +103,7 @@ const useStepNavigationWithLogin = ( return { ...stepNavigation, submit: () => { + recordSubmitStep( {}, '', flow.name, currentStepRoute, flow.variantSlug ); return stepNavigate( nextStep ); }, }; @@ -349,7 +351,7 @@ export const FlowRenderer: React.FC< { flow: Flow } > = ( { flow } ) => { { flowSteps.map( ( step ) => ( = ( { flow } ) => { path="*" element={ }