woocommerce/plugins/woocommerce-admin/client/wc-api/onboarding/mutations.js

11 lines
221 B
JavaScript
Raw Normal View History

const updateProfileItems = ( operations ) => ( fields ) => {
const resourceKey = 'onboarding-profile';
operations.update( [ resourceKey ], {
[ resourceKey ]: fields,
} );
};
export default {
updateProfileItems,
};