Don't redirect to connect Jetpack if "no thanks!" selected. (https://github.com/woocommerce/woocommerce-admin/pull/4944)
This commit is contained in:
parent
56dec569b5
commit
a42d4f4683
|
@ -219,12 +219,17 @@ class ProfileWizard extends Component {
|
|||
getPluginsError,
|
||||
isJetpackConnected,
|
||||
notes,
|
||||
profileItems,
|
||||
updateNote,
|
||||
updateProfileItems,
|
||||
} = this.props;
|
||||
recordEvent( 'storeprofiler_complete' );
|
||||
|
||||
const { plugins } = profileItems;
|
||||
const shouldConnectJetpack =
|
||||
activePlugins.includes( 'jetpack' ) && ! isJetpackConnected;
|
||||
( plugins === 'installed' || plugins === 'installed-wcs' ) &&
|
||||
activePlugins.includes( 'jetpack' ) &&
|
||||
! isJetpackConnected;
|
||||
|
||||
const profilerNote = notes.find(
|
||||
( note ) => note.name === 'wc-admin-onboarding-profiler-reminder'
|
||||
|
|
Loading…
Reference in New Issue