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 {
|
@include keyboard-mode {
|
||||||
border: none;
|
|
||||||
&:focus {
|
&:focus {
|
||||||
border-color: $color-ultramarine;
|
border-color: $color-ultramarine;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
|
|
@ -264,7 +264,9 @@ export const ProfileEditor = ({
|
||||||
const [avatarBuffer, setAvatarBuffer] = useState<Uint8Array | undefined>(
|
const [avatarBuffer, setAvatarBuffer] = useState<Uint8Array | undefined>(
|
||||||
undefined
|
undefined
|
||||||
);
|
);
|
||||||
const [isLoadingAvatar, setIsLoadingAvatar] = useState(true);
|
const [isLoadingAvatar, setIsLoadingAvatar] = useState(
|
||||||
|
Boolean(profileAvatarPath)
|
||||||
|
);
|
||||||
const [stagedProfile, setStagedProfile] = useState<ProfileDataType>({
|
const [stagedProfile, setStagedProfile] = useState<ProfileDataType>({
|
||||||
aboutEmoji,
|
aboutEmoji,
|
||||||
aboutText,
|
aboutText,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue