diff --git a/plugins/woocommerce/changelog/update-redirect-to-jetpack-screen-logic b/plugins/woocommerce/changelog/update-redirect-to-jetpack-screen-logic new file mode 100644 index 00000000000..2b0b68c0b5d --- /dev/null +++ b/plugins/woocommerce/changelog/update-redirect-to-jetpack-screen-logic @@ -0,0 +1,4 @@ +Significance: patch +Type: update + +Update core profiler redirect to jetpack screen logic diff --git a/plugins/woocommerce/client/admin/client/core-profiler/index.tsx b/plugins/woocommerce/client/admin/client/core-profiler/index.tsx index 8dbcd742f3f..67390ea6f8a 100644 --- a/plugins/woocommerce/client/admin/client/core-profiler/index.tsx +++ b/plugins/woocommerce/client/admin/client/core-profiler/index.tsx @@ -1338,16 +1338,7 @@ export const coreProfilerStateMachineDefinition = createMachine( { } ); return promiseDelay( 3000 ); } ), - onDone: [ - { - target: 'isJetpackConnected', - guard: or( [ - 'hasJetpackSelectedForInstallation', - 'hasJetpackActivated', - ] ), - }, - { actions: [ 'redirectToWooHome' ] }, - ], + onDone: [ { actions: [ 'redirectToWooHome' ] } ], }, meta: { component: CoreProfilerLoader, @@ -1419,10 +1410,7 @@ export const coreProfilerStateMachineDefinition = createMachine( { onDone: [ { target: 'isJetpackConnected', - guard: or( [ - 'hasJetpackSelectedForInstallation', - 'hasJetpackActivated', - ] ), + guard: 'hasJetpackSelectedForInstallation', }, { actions: 'redirectToWooHome' }, ],