Skip to content

Commit

Permalink
fix: header nav bar - use sub if preferred_username does not exis…
Browse files Browse the repository at this point in the history
…ts (#251)
  • Loading branch information
carlosthe19916 authored Nov 19, 2024
1 parent 123ed46 commit f2e9bb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/app/layout/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ export const HeaderApp: React.FC = () => {
isExpanded={isUserDropdownOpen}
icon={<Avatar src={imgAvatar} alt="" />}
>
{auth.user?.profile.preferred_username}
{auth.user?.profile.preferred_username ||
auth.user?.profile.sub}
</MenuToggle>
)}
>
Expand Down

0 comments on commit f2e9bb3

Please sign in to comment.