ProfileEditor: Fix updating non-avatar with no avatar
This commit is contained in:
parent
37d06ec7b9
commit
bb989455a7
2 changed files with 3 additions and 2 deletions
|
@ -2360,7 +2360,6 @@ button.ConversationDetails__action-button {
|
|||
}
|
||||
|
||||
@include keyboard-mode {
|
||||
border: none;
|
||||
&:focus {
|
||||
border-color: $color-ultramarine;
|
||||
outline: none;
|
||||
|
|
|
@ -264,7 +264,9 @@ export const ProfileEditor = ({
|
|||
const [avatarBuffer, setAvatarBuffer] = useState<Uint8Array | undefined>(
|
||||
undefined
|
||||
);
|
||||
const [isLoadingAvatar, setIsLoadingAvatar] = useState(true);
|
||||
const [isLoadingAvatar, setIsLoadingAvatar] = useState(
|
||||
Boolean(profileAvatarPath)
|
||||
);
|
||||
const [stagedProfile, setStagedProfile] = useState<ProfileDataType>({
|
||||
aboutEmoji,
|
||||
aboutText,
|
||||
|
|
Loading…
Add table
Reference in a new issue