Skip to content

Commit

Permalink
CORE: format update
Browse files Browse the repository at this point in the history
  • Loading branch information
ekachxaidze98 committed Jan 15, 2025
1 parent b70d544 commit aed9191
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions components/pdf-upload/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,20 @@ const RrsCheckCard = ({
return
}
const fileType = file.type
if (fileType !== 'application/pdf') {
if (sdgTypes) {
if (fileType !== 'application/pdf') {
setCurrentView('formatIssue')
return
}
} else if (
!(
fileType === 'application/pdf' ||
fileType === 'application/msword' ||
fileType ===
'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
)
)
setCurrentView('formatIssue')
return
}
uploadPdf(file)
setFileName(file.name)
}
Expand Down

0 comments on commit aed9191

Please sign in to comment.