regression: fix blank 'Name' field in Profile View when modifying other fields (#5101)
This commit is contained in:
parent
4880c47e9b
commit
557b4643fe
|
@ -232,8 +232,10 @@ class ProfileView extends React.Component<IProfileViewProps, IProfileViewState>
|
||||||
|
|
||||||
if (result) {
|
if (result) {
|
||||||
logEvent(events.PROFILE_SAVE_CHANGES);
|
logEvent(events.PROFILE_SAVE_CHANGES);
|
||||||
params.name = params.realname;
|
if ('realname' in params) {
|
||||||
delete params.realname;
|
params.name = params.realname;
|
||||||
|
delete params.realname;
|
||||||
|
}
|
||||||
if (customFields) {
|
if (customFields) {
|
||||||
dispatch(setUser({ customFields, ...params }));
|
dispatch(setUser({ customFields, ...params }));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue