diff --git a/static/app/components/profiling/flamegraph/interactions/useInteractionViewCheckPoint.tsx b/static/app/components/profiling/flamegraph/interactions/useInteractionViewCheckPoint.tsx index 1dc87398f396a9..ed245e09febdb7 100644 --- a/static/app/components/profiling/flamegraph/interactions/useInteractionViewCheckPoint.tsx +++ b/static/app/components/profiling/flamegraph/interactions/useInteractionViewCheckPoint.tsx @@ -28,11 +28,14 @@ export function useInteractionViewCheckPoint({ return; } - if ( - beforeInteractionConfigView.current && - !beforeInteractionConfigView.current.equals(view.configView) - ) { - dispatch({type: 'checkpoint', payload: view.configView.clone()}); + // Check if we are finish the current interaction + if (previousInteraction && lastInteraction === null) { + if ( + beforeInteractionConfigView.current && + !beforeInteractionConfigView.current.equals(view.configView) + ) { + dispatch({type: 'checkpoint', payload: view.configView.clone()}); + } } }, [dispatch, lastInteraction, previousInteraction, view]); }