Fix uploading avatars

This commit is contained in:
Robert Long 2022-01-21 16:33:43 -08:00
commit f2c3c82d3a
2 changed files with 3 additions and 3 deletions

View file

@ -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}

View file

@ -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"