Trim display name (#3023)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-04-20 00:46:43 +06:00 committed by GitHub
parent dee07c0bce
commit 20305973d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@
function changeDisplayName () {
client.update(object, {
displayName: displayName === '' ? null : displayName
displayName: displayName.trim() === '' ? null : displayName
})
}

View File

@ -77,7 +77,7 @@
function changeDisplayName () {
if (employee) {
client.update(employee, {
displayName: displayName === '' ? null : displayName
displayName: displayName.trim() === '' ? null : displayName
})
}
}