Skip to content

Commit

Permalink
add type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Oct 10, 2024
1 parent b3ff9c7 commit 8303c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/studentAccount/UpdateAccountForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const UpdateAccountForm: FC<UpdateAccountFormProps> = ({ user }) => {
initialValues={initialValues}
onSubmit={submitForm(updateUser, {
exclude: ["password_repeat"],
clean: values => {
clean: (values: typeof initialValues) => {
const arg: UpdateUserArg = { id: values.id }
if (user.student || isDirty(values, initialValues, "password")) {
arg.password = values.password
Expand Down

0 comments on commit 8303c96

Please sign in to comment.