From 126d8ba2f501bdb9d23d090b898b201299e14bff Mon Sep 17 00:00:00 2001 From: ekachxaidze98 Date: Tue, 10 Dec 2024 12:38:10 +0400 Subject: [PATCH] file upload issue --- components/pdf-upload/index.jsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/components/pdf-upload/index.jsx b/components/pdf-upload/index.jsx index a1b0042e..08b9d564 100644 --- a/components/pdf-upload/index.jsx +++ b/components/pdf-upload/index.jsx @@ -43,6 +43,7 @@ const RrsCheckCard = ({ const handleFileChange = (event) => { event.preventDefault() + event.stopPropagation() if (rrsPdfLoading) return let file @@ -65,12 +66,9 @@ const RrsCheckCard = ({ fileType === 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' ) - ) { + ) setCurrentView('formatIssue') - return - } } - event.stopPropagation() } return (