Update core profiler redirect to jetpack screen logic (#52095)
* Update core profiler redirect to jetpack screen logic * Add changelog * Only redirect when jetpack is selected
This commit is contained in:
parent
9e83d0cd6a
commit
c9ab2d67af
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: update
|
||||
|
||||
Update core profiler redirect to jetpack screen logic
|
|
@ -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' },
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue