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

11 lines
246 B
JavaScript

/** @format */
const updateCurrentUserData = operations => userDataFields => {
const resourceKey = 'current-user-data';
operations.update( [ resourceKey ], { [ resourceKey ]: userDataFields } );
};
export default {
updateCurrentUserData,
};