- {renderCompositeAttribute(intl, attribute.compositeAttributes, !editMode)}
+ {renderCompositeAttribute(attribute.compositeAttributes, !editMode)}
@@ -223,7 +197,7 @@ class MyProfileEditFormBody extends Component {
);
}
- return field(intl, attribute, !editMode);
+ return field(attribute, !editMode);
});
const { profilepicture } = values;
@@ -252,7 +226,7 @@ class MyProfileEditFormBody extends Component {
className="pull-right"
type="submit"
bsStyle="primary"
- disabled={!isValid}
+ disabled={!isValid || isSubmitting}
data-testid="profile_saveBtn"
onClick={() => {
this.changeMode();
@@ -332,6 +306,7 @@ MyProfileEditFormBody.propTypes = {
userEmail: PropTypes.string,
onChangeProfilePicture: PropTypes.func.isRequired,
isValid: PropTypes.bool.isRequired,
+ isSubmitting: PropTypes.bool.isRequired,
};
MyProfileEditFormBody.defaultProps = {