Set skipped flag when guided setup is skipped (#38730)

* Set woocommerce_onboarding_profile.skipped when guided setup is skipped

* Add Changelog
This commit is contained in:
Moon 2023-06-14 21:12:03 -07:00 committed by GitHub
parent 1e8bbb2800
commit e50fb51b26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 3 deletions

View File

@ -999,9 +999,20 @@ export const coreProfilerStateMachineDefinition = createMachine( {
} ), } ),
invoke: { invoke: {
src: ( context ) => { src: ( context ) => {
return updateBusinessLocation( const skipped = dispatch(
context.businessInfo.location as string ONBOARDING_STORE_NAME
).updateProfileItems( {
skipped: true,
} );
const businessLocation =
updateBusinessLocation(
context.businessInfo
.location as string
); );
return Promise.all( [
skipped,
businessLocation,
] );
}, },
onDone: { onDone: {
target: 'progress20', target: 'progress20',

View File

@ -0,0 +1,4 @@
Significance: minor
Type: update
Set woocommerce_onboarding_profile.skipped when guided set is skipped