From f2b3d532ae90c12829fc7ea88f1d580e231f5056 Mon Sep 17 00:00:00 2001 From: Amin Ghasempoor Date: Mon, 24 Jul 2023 16:06:23 +0330 Subject: [PATCH] confirm form handle change --- src/components/dashboard/machinary-office/Form/ConfirmForm.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/dashboard/machinary-office/Form/ConfirmForm.jsx b/src/components/dashboard/machinary-office/Form/ConfirmForm.jsx index 6166ff4..f2988ef 100644 --- a/src/components/dashboard/machinary-office/Form/ConfirmForm.jsx +++ b/src/components/dashboard/machinary-office/Form/ConfirmForm.jsx @@ -61,6 +61,7 @@ const ConfirmForm = ({ open, handleClose, rowId, confirmData }) => { const maxFileSize = 2 * 1024 * 1024; if (uploadedFile.size > maxFileSize) { UploadFileNotification(directionApp, t); + event.target.value = ""; return; } const fileType = event.target?.files?.[0].type;