Skip to content

Commit

Permalink
ProfileEditor: Fix updating non-avatar with no avatar
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Nonnenberg <scott@signal.org>
  • Loading branch information
automated-signal and scottnonnenberg-signal committed Apr 8, 2022
1 parent a6e81ed commit 35bddbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion stylesheets/_modules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2360,7 +2360,6 @@ button.ConversationDetails__action-button {
}

@include keyboard-mode {
border: none;
&:focus {
border-color: $color-ultramarine;
outline: none;
Expand Down
4 changes: 3 additions & 1 deletion ts/components/ProfileEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 35bddbf

Please sign in to comment.