Skip to content

Commit

Permalink
N21-1269 fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
arnegns committed Sep 22, 2023
1 parent 8965092 commit 65fe6b0
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 > 0) {
if (userResponse.data.length > 0) {
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 65fe6b0

Please sign in to comment.