ProfileEditor: Fix updating non-avatar with no avatar

This commit is contained in:
Scott Nonnenberg 2022-04-07 19:44:26 -07:00 committed by GitHub
parent 37d06ec7b9
commit bb989455a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -2360,7 +2360,6 @@ button.ConversationDetails__action-button {
}
@include keyboard-mode {
border: none;
&:focus {
border-color: $color-ultramarine;
outline: none;

View File

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