Fix uploading avatars
This commit is contained in:
parent
48f3f430da
commit
f2c3c82d3a
2 changed files with 3 additions and 3 deletions
|
|
@ -64,7 +64,7 @@ export function UserMenu({
|
|||
<PopoverMenuTrigger placement="bottom right">
|
||||
<TooltipTrigger placement="bottom left">
|
||||
<Button variant="icon" className={styles.userButton}>
|
||||
{isAuthenticated && !isPasswordlessUser ? (
|
||||
{isAuthenticated && (!isPasswordlessUser || avatarUrl) ? (
|
||||
<Avatar
|
||||
size="sm"
|
||||
className={styles.avatar}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ export function ProfileModal({
|
|||
|
||||
saveProfile({
|
||||
displayName,
|
||||
avatar,
|
||||
avatar: avatar && avatar.size > 0 ? avatar : undefined,
|
||||
});
|
||||
},
|
||||
[saveProfile]
|
||||
|
|
@ -65,7 +65,7 @@ export function ProfileModal({
|
|||
onChange={onChangeDisplayName}
|
||||
/>
|
||||
</FieldRow>
|
||||
{isAuthenticated && !isPasswordlessUser && (
|
||||
{isAuthenticated && (
|
||||
<FieldRow>
|
||||
<InputField
|
||||
type="file"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue