From 5e8e359fa8d9f48d9207c2256fff9524aa231e74 Mon Sep 17 00:00:00 2001 From: Reinaldo Neto Date: Tue, 6 Jun 2023 20:22:52 -0300 Subject: [PATCH] fix: changing anything on profile view except the 'Name' results in blank 'Name' field inside the Profile View --- app/views/ProfileView/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/ProfileView/index.tsx b/app/views/ProfileView/index.tsx index 8e6bd32ddd7..7ee61bd520e 100644 --- a/app/views/ProfileView/index.tsx +++ b/app/views/ProfileView/index.tsx @@ -232,8 +232,10 @@ class ProfileView extends React.Component if (result) { logEvent(events.PROFILE_SAVE_CHANGES); - params.name = params.realname; - delete params.realname; + if ('realname' in params) { + params.name = params.realname; + delete params.realname; + } if (customFields) { dispatch(setUser({ customFields, ...params })); } else {