diff --git a/frontend/src/components/user/forms/personalInformation.js b/frontend/src/components/user/forms/personalInformation.js index 02ee7b5172..b6b4f3fc56 100644 --- a/frontend/src/components/user/forms/personalInformation.js +++ b/frontend/src/components/user/forms/personalInformation.js @@ -62,15 +62,18 @@ function _PersonalInformationForm(props) { ) : undefined; + async function handleFormSubmit(values) { + await props.pushUserDetails(prepareUserDetailsToPush(values, formFields), props.token, true); + } + return (

- props.pushUserDetails(prepareUserDetailsToPush(values, formFields), props.token, true) - } + subscription={{ submitting: true, pristine: true }} + onSubmit={handleFormSubmit} initialValues={props.userDetails} render={({ handleSubmit, pristine, form, submitting, values, hasValidationErrors }) => ( @@ -287,9 +290,10 @@ function _PersonalInformationForm(props) {