change some files

This commit is contained in:
2026-06-03 16:15:30 +03:30
parent cfb48c5bb0
commit 4c9152869f

View File

@@ -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={{