Show UserMenu even if no avatar available

This commit is contained in:
Daniel Abramov
2023-07-03 18:36:50 +01:00
parent b68cd54049
commit 6998555ad9
2 changed files with 9 additions and 13 deletions

View File

@@ -61,18 +61,14 @@ export function UserMenuContainer({ preventNavigation = false }: Props) {
const userName = client?.getUserIdLocalpart() ?? "";
return (
<>
{avatarUrl && (
<UserMenu
preventNavigation={preventNavigation}
isAuthenticated={authenticated}
isPasswordlessUser={passwordlessUser}
avatarUrl={avatarUrl}
onAction={onAction}
displayName={
displayName || (userName ? userName.replace("@", "") : "")
}
/>
)}
<UserMenu
preventNavigation={preventNavigation}
isAuthenticated={authenticated}
isPasswordlessUser={passwordlessUser}
avatarUrl={avatarUrl}
onAction={onAction}
displayName={displayName || (userName ? userName.replace("@", "") : "")}
/>
{modalState.isOpen && client && (
<SettingsModal
client={client}