diff --git a/apps/meteor/client/components/avatar/UserAvatarEditor/UserAvatarEditor.tsx b/apps/meteor/client/components/avatar/UserAvatarEditor/UserAvatarEditor.tsx index 95659d762d30..c0a08cf89a9b 100644 --- a/apps/meteor/client/components/avatar/UserAvatarEditor/UserAvatarEditor.tsx +++ b/apps/meteor/client/components/avatar/UserAvatarEditor/UserAvatarEditor.tsx @@ -19,9 +19,10 @@ type UserAvatarEditorProps = { setAvatarObj: (obj: AvatarObject) => void; disabled?: boolean; etag: IUser['avatarETag']; + avatarValue?: AvatarObject; }; -function UserAvatarEditor({ currentUsername, username, setAvatarObj, disabled, etag }: UserAvatarEditorProps): ReactElement { +function UserAvatarEditor({ currentUsername, username, setAvatarObj, disabled, etag, avatarValue }: UserAvatarEditorProps): ReactElement { const { t } = useTranslation(); const rotateImages = useSetting('FileUpload_RotateImages'); const [avatarFromUrl, setAvatarFromUrl] = useState(''); @@ -90,7 +91,13 @@ function UserAvatarEditor({ currentUsername, username, setAvatarObj, disabled, e /> - diff --git a/apps/meteor/client/views/account/profile/AccountProfileForm.tsx b/apps/meteor/client/views/account/profile/AccountProfileForm.tsx index 54875f0686cb..5893561f58c5 100644 --- a/apps/meteor/client/views/account/profile/AccountProfileForm.tsx +++ b/apps/meteor/client/views/account/profile/AccountProfileForm.tsx @@ -146,13 +146,14 @@ const AccountProfileForm = (props: AllHTMLAttributes): ReactEle ( + render={({ field: { onChange, value } }) => ( )} />