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">
|
<PopoverMenuTrigger placement="bottom right">
|
||||||
<TooltipTrigger placement="bottom left">
|
<TooltipTrigger placement="bottom left">
|
||||||
<Button variant="icon" className={styles.userButton}>
|
<Button variant="icon" className={styles.userButton}>
|
||||||
{isAuthenticated && !isPasswordlessUser ? (
|
{isAuthenticated && (!isPasswordlessUser || avatarUrl) ? (
|
||||||
<Avatar
|
<Avatar
|
||||||
size="sm"
|
size="sm"
|
||||||
className={styles.avatar}
|
className={styles.avatar}
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ export function ProfileModal({
|
||||||
|
|
||||||
saveProfile({
|
saveProfile({
|
||||||
displayName,
|
displayName,
|
||||||
avatar,
|
avatar: avatar && avatar.size > 0 ? avatar : undefined,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
[saveProfile]
|
[saveProfile]
|
||||||
|
|
@ -65,7 +65,7 @@ export function ProfileModal({
|
||||||
onChange={onChangeDisplayName}
|
onChange={onChangeDisplayName}
|
||||||
/>
|
/>
|
||||||
</FieldRow>
|
</FieldRow>
|
||||||
{isAuthenticated && !isPasswordlessUser && (
|
{isAuthenticated && (
|
||||||
<FieldRow>
|
<FieldRow>
|
||||||
<InputField
|
<InputField
|
||||||
type="file"
|
type="file"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue