From 067991533a9ffc06a490790b7627077a80009eab Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Tue, 6 Apr 2021 11:43:58 +1000 Subject: [PATCH] EditProfile: do not mutate contact Fixes urbit/landscape#698 --- .../src/views/apps/profile/components/EditProfile.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/interface/src/views/apps/profile/components/EditProfile.tsx b/pkg/interface/src/views/apps/profile/components/EditProfile.tsx index d59bd98a8c..0648d73261 100644 --- a/pkg/interface/src/views/apps/profile/components/EditProfile.tsx +++ b/pkg/interface/src/views/apps/profile/components/EditProfile.tsx @@ -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 { <> {({ setFieldValue }) => (