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:
parent
1e8bbb2800
commit
e50fb51b26
|
@ -999,9 +999,20 @@ export const coreProfilerStateMachineDefinition = createMachine( {
|
|||
} ),
|
||||
invoke: {
|
||||
src: ( context ) => {
|
||||
return updateBusinessLocation(
|
||||
context.businessInfo.location as string
|
||||
const skipped = dispatch(
|
||||
ONBOARDING_STORE_NAME
|
||||
).updateProfileItems( {
|
||||
skipped: true,
|
||||
} );
|
||||
const businessLocation =
|
||||
updateBusinessLocation(
|
||||
context.businessInfo
|
||||
.location as string
|
||||
);
|
||||
return Promise.all( [
|
||||
skipped,
|
||||
businessLocation,
|
||||
] );
|
||||
},
|
||||
onDone: {
|
||||
target: 'progress20',
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: minor
|
||||
Type: update
|
||||
|
||||
Set woocommerce_onboarding_profile.skipped when guided set is skipped
|
Loading…
Reference in New Issue