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 () => { const handleRemoveProfilePhoto = async () => {
// اگر نیاز بود به بک‌اند درخواست حذف بزنید (اختیاری) // اگر نیاز بود به بک‌اند درخواست حذف بزنید (اختیاری)
await callAPI.post("/files/delete", { await callAPI.post("/files/delete", {
fileId: props.values.profilePhotoId, fileId: props.values?.profilePhotoId,
}); });
props.setFieldValue("profilePhotoId", null); props.setFieldValue("profilePhotoId", null);
setProfilePreview(""); setProfilePreview("");
@@ -526,7 +526,7 @@ export default function InnerIdentityForm(
{/* پیام موفقیت */} {/* پیام موفقیت */}
{!profileUploading && {!profileUploading &&
props.values.profilePhotoId && props?.values?.profilePhotoId &&
!profileUploadError && ( !profileUploadError && (
<Typography <Typography
sx={{ sx={{