Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
swarnadipa-dev committed Aug 11, 2023
1 parent 9c7e39c commit 02686be
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions elements/nuxeo-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -1099,20 +1099,20 @@ Polymer({

_displayUser(user) {
if (user) {
let result = '';
let res = '';
if (user.properties.firstName) {
result += user.properties.firstName;
res += user.properties.firstName;
}
if (user.properties.lastName) {
if (result.length > 0) {
result += ' ';
if (res.length > 0) {
res += ' ';
}
result += user.properties.lastName;
res += user.properties.lastName;
}
if (result.length === 0) {
result = user.id;
if (res.length === 0) {
res = user.id;
}
return result;
return res;
}
},

Expand Down

0 comments on commit 02686be

Please sign in to comment.