change some files
This commit is contained in:
@@ -118,7 +118,7 @@ export default function InnerIdentityForm(
|
||||
const handleRemoveProfilePhoto = async () => {
|
||||
// اگر نیاز بود به بکاند درخواست حذف بزنید (اختیاری)
|
||||
await callAPI.post("/files/delete", {
|
||||
fileId: props.values.profilePhotoId,
|
||||
fileId: props.values?.profilePhotoId,
|
||||
});
|
||||
props.setFieldValue("profilePhotoId", null);
|
||||
setProfilePreview("");
|
||||
@@ -526,7 +526,7 @@ export default function InnerIdentityForm(
|
||||
|
||||
{/* پیام موفقیت */}
|
||||
{!profileUploading &&
|
||||
props.values.profilePhotoId &&
|
||||
props?.values?.profilePhotoId &&
|
||||
!profileUploadError && (
|
||||
<Typography
|
||||
sx={{
|
||||
|
||||
Reference in New Issue
Block a user