Skip to content

Commit 5f57ec6

Browse files
authored
fix: edit name not working (#6686)
1 parent 5416b90 commit 5f57ec6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/views/ProfileView/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ const ProfileView = ({ navigation }: IProfileViewProps): React.ReactElement => {
168168
const { name, username, email, currentPassword, bio, nickname } = getValues();
169169
const params = {} as IProfileParams;
170170

171-
if (user.name !== name) params.realname = name;
171+
if (user.name !== name) params.name = name;
172172
if (user.username !== username) params.username = username;
173173
if (user.emails?.[0].address !== email) params.email = email;
174174
if (user.bio !== bio) params.bio = bio;
@@ -198,10 +198,6 @@ const ProfileView = ({ navigation }: IProfileViewProps): React.ReactElement => {
198198

199199
if (result) {
200200
logEvent(events.PROFILE_SAVE_CHANGES);
201-
if ('realname' in params) {
202-
params.name = params.realname;
203-
delete params.realname;
204-
}
205201
if (customFields) {
206202
dispatch(setUser({ customFields, ...params }));
207203
setCustomFields(customFields);

0 commit comments

Comments
 (0)