Skip to content

Commit

Permalink
N21-1269 change pseudonym display (#3311)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnegns authored Sep 22, 2023
1 parent 763396a commit 7333a1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/oauth2.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ router.get('/username/:pseudonym', async (req, res, next) => {
qs: { id: pseudonymResponse.userId },
$limit: 1,
});
if (userResponse.data?.length === 1) {
if (userResponse.data.length) {
completeName = `${userResponse.data[0].firstName} ${userResponse.data[0].lastName}`;
shortName = `${userResponse.data[0].firstName} ${userResponse.data[0].lastName.charAt(0)}.`;
}
Expand Down

0 comments on commit 7333a1c

Please sign in to comment.