diff --git a/apps/app/pages/[workspaceSlug]/me/profile/index.tsx b/apps/app/pages/[workspaceSlug]/me/profile/index.tsx index 8c1f9cd1e..c64a5a4d1 100644 --- a/apps/app/pages/[workspaceSlug]/me/profile/index.tsx +++ b/apps/app/pages/[workspaceSlug]/me/profile/index.tsx @@ -67,7 +67,7 @@ const Profile: NextPage = () => { .then((res) => { mutateUser((prevData) => { if (!prevData) return prevData; - return { ...prevData, user: { ...payload, ...res } }; + return { ...prevData, ...res }; }, false); setIsEditing(false); setToastAlert({ @@ -97,7 +97,7 @@ const Profile: NextPage = () => { if (updateUser) userService .updateUser({ avatar: "" }) - .then((res) => { + .then(() => { setToastAlert({ type: "success", title: "Success!", @@ -105,7 +105,7 @@ const Profile: NextPage = () => { }); mutateUser((prevData) => { if (!prevData) return prevData; - return { ...prevData, user: res }; + return { ...prevData, avatar: "" }; }, false); }) .catch(() => { diff --git a/apps/app/pages/[workspaceSlug]/settings/index.tsx b/apps/app/pages/[workspaceSlug]/settings/index.tsx index 21865ef02..1ac94661b 100644 --- a/apps/app/pages/[workspaceSlug]/settings/index.tsx +++ b/apps/app/pages/[workspaceSlug]/settings/index.tsx @@ -191,8 +191,8 @@ const WorkspaceSettings: NextPage = () => {