From 54c9f87ba3c1f217ee6b08b020b780dbdeee7f2a Mon Sep 17 00:00:00 2001 From: Michal Masrna Date: Sat, 23 Nov 2024 14:33:14 +0100 Subject: [PATCH] Displaying error message whne uploading a solution in format other than pdf --- src/components/Problems/UploadProblemForm.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Problems/UploadProblemForm.tsx b/src/components/Problems/UploadProblemForm.tsx index 44848eb7..120e0abf 100644 --- a/src/components/Problems/UploadProblemForm.tsx +++ b/src/components/Problems/UploadProblemForm.tsx @@ -132,6 +132,7 @@ export const UploadProblemForm: FC<{ )} + {fileRejections.length > 0 && Nahraný súbor musí byť vo formáte pdf.} {files?.name && (
@@ -149,8 +150,6 @@ export const UploadProblemForm: FC<{ Zrušiť
- - {fileRejections.length > 0 && Nahraný súbor musí byť vo formáte pdf.}
)}