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