admin lastname defaults to undefined

This commit is contained in:
fbalhawan 2023-07-15 14:49:22 +03:00
parent 07bbe1588e
commit 702cf6a183

View File

@ -113,7 +113,7 @@ const Register = ({ authType, fieldsToDisable, noSignin, onSubmit, schema }) =>
enableReinitialize
initialValues={{
firstname: userInfo.firstname || '',
lastname: userInfo.lastname || '',
lastname: userInfo.lastname || undefined,
email: userInfo.email || '',
password: '',
confirmPassword: '',