diff --git a/apps/meteor/client/components/avatar/UserAvatarEditor/UserAvatarEditor.tsx b/apps/meteor/client/components/avatar/UserAvatarEditor/UserAvatarEditor.tsx index 0ecd5fda43ab2..c0a08cf89a9b0 100644 --- a/apps/meteor/client/components/avatar/UserAvatarEditor/UserAvatarEditor.tsx +++ b/apps/meteor/client/components/avatar/UserAvatarEditor/UserAvatarEditor.tsx @@ -19,10 +19,10 @@ type UserAvatarEditorProps = { setAvatarObj: (obj: AvatarObject) => void; disabled?: boolean; etag: IUser['avatarETag']; - profileAvatar?: AvatarObject; + avatarValue?: AvatarObject; }; -function UserAvatarEditor({ currentUsername, username, setAvatarObj, disabled, etag, profileAvatar }: UserAvatarEditorProps): ReactElement { +function UserAvatarEditor({ currentUsername, username, setAvatarObj, disabled, etag, avatarValue }: UserAvatarEditorProps): ReactElement { const { t } = useTranslation(); const rotateImages = useSetting('FileUpload_RotateImages'); const [avatarFromUrl, setAvatarFromUrl] = useState(''); @@ -91,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 1568616f77d05..5893561f58c59 100644 --- a/apps/meteor/client/views/account/profile/AccountProfileForm.tsx +++ b/apps/meteor/client/views/account/profile/AccountProfileForm.tsx @@ -153,7 +153,7 @@ const AccountProfileForm = (props: AllHTMLAttributes): ReactEle username={username} setAvatarObj={onChange} disabled={!allowUserAvatarChange} - profileAvatar={value} + avatarValue={value} /> )} />