Skip to content

Commit

Permalink
Trim display name (#3023)
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
  • Loading branch information
BykhovDenis authored and haiodo committed Apr 20, 2023
1 parent fc59ab9 commit 0a289e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
function changeDisplayName () {
client.update(object, {
displayName: displayName === '' ? null : displayName
displayName: displayName.trim() === '' ? null : displayName
})
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/setting-resources/src/components/Profile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
function changeDisplayName () {
if (employee) {
client.update(employee, {
displayName: displayName === '' ? null : displayName
displayName: displayName.trim() === '' ? null : displayName
})
}
}
Expand Down

0 comments on commit 0a289e9

Please sign in to comment.