mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 16:51:42 +03:00
parent
264fce214b
commit
067991533a
@ -93,9 +93,6 @@ export function EditProfile(props: any): ReactElement {
|
||||
};
|
||||
|
||||
const history = useHistory();
|
||||
if (contact) {
|
||||
contact.isPublic = isPublic;
|
||||
}
|
||||
|
||||
const onSubmit = async (values: any, actions: any) => {
|
||||
try {
|
||||
@ -143,7 +140,7 @@ export function EditProfile(props: any): ReactElement {
|
||||
<>
|
||||
<Formik
|
||||
validationSchema={formSchema}
|
||||
initialValues={contact || emptyContact}
|
||||
initialValues={{...contact, isPublic } || emptyContact}
|
||||
onSubmit={onSubmit}
|
||||
>
|
||||
{({ setFieldValue }) => (
|
||||
|
Loading…
Reference in New Issue
Block a user