Skip to content

Commit

Permalink
✨(frontend) display email if no username
Browse files Browse the repository at this point in the history
Fallback to email if no username is defined for logged user.
  • Loading branch information
sdemagny committed Jan 10, 2025
1 parent a28bb5e commit c331f4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const AccountDropdown = () => {
const { t } = useTranslation();
const { userData, logout } = useAuthStore();

const userName = userData?.name || t('No Username');
const userName = userData?.name || userData?.email || t('No Username');
return (
<DropButton
button={
Expand Down

0 comments on commit c331f4b

Please sign in to comment.