From ca2b907640ac65d17d8d427182f75ee98aa6041a Mon Sep 17 00:00:00 2001 From: Filippo Ledda Date: Tue, 5 Mar 2024 14:35:31 +0100 Subject: [PATCH] #602 user email save fix --- applications/osb-portal/src/pages/UserPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/osb-portal/src/pages/UserPage.tsx b/applications/osb-portal/src/pages/UserPage.tsx index 0562ab52..05cac639 100644 --- a/applications/osb-portal/src/pages/UserPage.tsx +++ b/applications/osb-portal/src/pages/UserPage.tsx @@ -283,7 +283,7 @@ export const UserPage = (props: any) => { setProfileEditDialogOpen(false); updateUser(u) .then((updatedUser) => { - setUser(updatedUser); + setUser({ ...updatedUser, ...u }); setLoading(false); }) .catch((err) => { @@ -794,7 +794,7 @@ export const UserPage = (props: any) => { {canEdit && profileEditDialogOpen && ( setProfileEditDialogOpen(false)} />