Don't redirect to connect Jetpack if "no thanks!" selected. (https://github.com/woocommerce/woocommerce-admin/pull/4944)

This commit is contained in:
Jeff Stieler 2020-08-10 08:18:09 -04:00 committed by GitHub
parent 56dec569b5
commit a42d4f4683
1 changed files with 6 additions and 1 deletions

View File

@ -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'