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,
|
getPluginsError,
|
||||||
isJetpackConnected,
|
isJetpackConnected,
|
||||||
notes,
|
notes,
|
||||||
|
profileItems,
|
||||||
updateNote,
|
updateNote,
|
||||||
updateProfileItems,
|
updateProfileItems,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
recordEvent( 'storeprofiler_complete' );
|
recordEvent( 'storeprofiler_complete' );
|
||||||
|
|
||||||
|
const { plugins } = profileItems;
|
||||||
const shouldConnectJetpack =
|
const shouldConnectJetpack =
|
||||||
activePlugins.includes( 'jetpack' ) && ! isJetpackConnected;
|
( plugins === 'installed' || plugins === 'installed-wcs' ) &&
|
||||||
|
activePlugins.includes( 'jetpack' ) &&
|
||||||
|
! isJetpackConnected;
|
||||||
|
|
||||||
const profilerNote = notes.find(
|
const profilerNote = notes.find(
|
||||||
( note ) => note.name === 'wc-admin-onboarding-profiler-reminder'
|
( note ) => note.name === 'wc-admin-onboarding-profiler-reminder'
|
||||||
|
|
Loading…
Reference in New Issue