ProfileEditor: Fix updating non-avatar with no avatar

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
automated-signal 2022-04-08 10:02:53 -07:00 committed by GitHub
parent a6e81ed618
commit 35bddbfb85
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,