Skip to content

Commit

Permalink
Displaying error message whne uploading a solution in format other th…
Browse files Browse the repository at this point in the history
…an pdf (#469)
  • Loading branch information
michalmasrna1 authored Nov 23, 2024
1 parent 50e3d44 commit 22a0fa3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Problems/UploadProblemForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export const UploadProblemForm: FC<{
</Typography>
</>
)}
{fileRejections.length > 0 && <span>Nahraný súbor musí byť vo formáte pdf.</span>}
{files?.name && (
<div className={styles.files}>
<div>
Expand All @@ -149,8 +150,6 @@ export const UploadProblemForm: FC<{
Zrušiť
</Button>
</div>

{fileRejections.length > 0 && <span>Nahraný súbor musí byť vo formáte pdf.</span>}
</div>
)}
</div>
Expand Down

0 comments on commit 22a0fa3

Please sign in to comment.