From 557b4643fe5d69ba13a00cc30f798eaf5e707416 Mon Sep 17 00:00:00 2001 From: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com> Date: Mon, 19 Jun 2023 20:41:04 -0300 Subject: [PATCH] regression: fix blank 'Name' field in Profile View when modifying other fields (#5101) --- 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 8e6bd32dd..7ee61bd52 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 {