Skip to content

Commit

Permalink
Fix canResubmit fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Matushl committed Dec 8, 2023
1 parent 5ee3145 commit a2c8553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Problems/Problems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const Problems: FC = () => {
const problems = series?.problems ?? []
const semesterId = series?.semester ?? -1
const canSubmit = series?.can_submit ?? false
const canResubmit = series?.can_resubmit ?? canSubmit
const canResubmit = series?.can_resubmit ?? false
const [isAfterDeadline, setIsAfterDeadline] = useState<boolean>(new Date(series?.deadline ?? '') < new Date())

useInterval(
Expand Down

0 comments on commit a2c8553

Please sign in to comment.