Skip to content

Commit

Permalink
nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
faucomte97 committed Jan 31, 2025
1 parent de89b8b commit 7086f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/form/UpdateAccountForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const UpdateAccountForm: FC<UpdateAccountFormProps> = ({ authUser }) => {
if (authUser.student) {
passwordSchema = studentPasswordSchema
} else if (authUser.teacher) {
passwordSchema = teacherPasswordSchema
passwordSchema = teacherPasswordSchema.concat(nullableSchema)
}

if (isDirty(form.values, initialValues, "current_password")) {
Expand Down

0 comments on commit 7086f82

Please sign in to comment.