Skip to content

Commit

Permalink
fix: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
koko57 committed Aug 30, 2024
1 parent 86d2327 commit b46eea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/PersonalDetailsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ function getPersonalDetailsLength() {
function getUserNameByEmail(email: string, nameToDisplay: 'firstName' | 'displayName') {
const userDetails = getPersonalDetailByEmail(email);
if (userDetails) {
return userDetails[nameToDisplay] ?? userDetails.login;
return userDetails[nameToDisplay] ? userDetails[nameToDisplay] : userDetails.login;
}
return email;
}
Expand Down

0 comments on commit b46eea7

Please sign in to comment.