Skip to content

Commit

Permalink
Fix canResubmit fallback (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matushl authored Dec 8, 2023
1 parent dfa1efe commit 14f9da2
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 14f9da2

Please sign in to comment.