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