Skip to content

Commit

Permalink
Allow discussion on all problems for everyone.
Browse files Browse the repository at this point in the history
Most notably to be able to read discussion on past problems, but we do not mind also writing e. g. after the author solution has been released.
  • Loading branch information
michalmasrna1 committed Nov 23, 2024
1 parent 2a27266 commit cfab285
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/components/Problems/Problem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,13 @@ export const Problem: FC<{
</Link>
</>
)}
<Button onClick={handleDiscussionButtonClick} variant="button2">
diskusia ({problem.num_comments})
</Button>
{canSubmit && (
<>
<Button onClick={handleDiscussionButtonClick} variant="button2">
diskusia ({problem.num_comments})
</Button>
<Button onClick={handleUploadClick} disabled={isAuthed && !canRegister} variant="button2">
odovzdať
</Button>
</>
<Button onClick={handleUploadClick} disabled={isAuthed && !canRegister} variant="button2">
odovzdať
</Button>
)}
</Stack>
)}
Expand Down

0 comments on commit cfab285

Please sign in to comment.