Skip to content

Update customer missing fields #3074

Description

@cartamundi-tvae

Update customer data in Account Settings requires first name, last name and email, and an optional company:

export const updateAccountSchema = z.object({
firstName: z.string().min(2).trim(),
lastName: z.string().min(2).trim(),
email: z.string().email().trim(),
company: z.string().trim().optional(),
});

However, the update function only sends the first name and last name to actually update. The email, nor the company is updated.

Additionally, if a new field was added later (e.g. Terms and Conditions) which is now required. Then older accounts cannot update their info because the field is required, but there is no option to change it:

1:{"account":"$T0:0:account","lastResult":{"status":"error","intent":"$undefined","initialValue":{"company":"XXXXX","email":"xxxxx@xxx.com","firstName":"XXXX","intent":"update","lastName":"XXXXX"},"error":{"":["Required account form field ID 26 ('Terms and Conditions') is missing"]},"state":"$undefined","fields":["firstName","lastName","email","company","intent"]}}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions