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: {
|
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',
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: update
|
||||||
|
|
||||||
|
Set woocommerce_onboarding_profile.skipped when guided set is skipped
|
Loading…
Reference in New Issue