Skip to content

Commit

Permalink
fix(dashboard/user-edit-form): nickname cannot be null error, even th…
Browse files Browse the repository at this point in the history
…ough it is allowed
  • Loading branch information
CodeNamedRobin committed Aug 30, 2024
1 parent 2a3815c commit 955eb28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dashboard/src/utils/validation-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const updateUserDetailsObject = yup.object({
firstName: yup.string().required(),
lastName: yup.string(),
email: yup.string().email(),
nickname: yup.string(),
nickname: yup.string().nullable(),
userType: yup.number().required(),
isActive: yup.boolean().required().default(true),
ofAge: yup.boolean().required().default(false),
Expand Down

0 comments on commit 955eb28

Please sign in to comment.