Skip to content

Commit

Permalink
#602 user email save fix
Browse files Browse the repository at this point in the history
  • Loading branch information
filippomc committed Mar 5, 2024
1 parent 9676be1 commit ca2b907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions applications/osb-portal/src/pages/UserPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ export const UserPage = (props: any) => {
setProfileEditDialogOpen(false);
updateUser(u)
.then((updatedUser) => {
setUser(updatedUser);
setUser({ ...updatedUser, ...u });
setLoading(false);
})
.catch((err) => {
Expand Down Expand Up @@ -794,7 +794,7 @@ export const UserPage = (props: any) => {
{canEdit && profileEditDialogOpen && (

<UserEditor
user={{...user, ...currentUser }}
user={{ ...user, email: user.email || currentUser.email }}
saveUser={handleUpdateUser}
close={() => setProfileEditDialogOpen(false)}
/>
Expand Down

0 comments on commit ca2b907

Please sign in to comment.