woocommerce/plugins/woocommerce-blocks/assets/js/blocks/order-confirmation/create-account/utils.ts

7 lines
171 B
TypeScript

export const parseAttributes = ( data: Record< string, unknown > ) => {
return {
customerEmail: data?.customerEmail || '',
nonceToken: data?.nonceToken || '',
};
};