Fix save profile avatar disappearing on save name/bio

This commit is contained in:
Jamie Kyle 2024-02-09 13:14:32 -08:00 committed by GitHub
parent 4a73b48f3f
commit cf9a376df8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 34 additions and 38 deletions

View file

@ -7,7 +7,7 @@ import { ConfirmationDialog } from './ConfirmationDialog';
import type { PropsType as ProfileEditorPropsType } from './ProfileEditor';
import { ProfileEditor, EditState } from './ProfileEditor';
import type { ProfileDataType } from '../state/ducks/conversations';
import type { AvatarUpdateType } from '../types/Avatar';
import type { AvatarUpdateOptionsType } from '../types/Avatar';
export type PropsDataType = {
hasError: boolean;
@ -16,7 +16,7 @@ export type PropsDataType = {
type PropsType = {
myProfileChanged: (
profileData: ProfileDataType,
avatar: AvatarUpdateType
avatarUpdateOptions: AvatarUpdateOptionsType
) => unknown;
toggleProfileEditor: () => unknown;
toggleProfileEditorHasError: () => unknown;