From a2c85530c19792aea8defb889b5d0608dd79fb65 Mon Sep 17 00:00:00 2001 From: matushl Date: Fri, 8 Dec 2023 12:47:39 +0100 Subject: [PATCH] Fix `canResubmit` fallback --- src/components/Problems/Problems.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Problems/Problems.tsx b/src/components/Problems/Problems.tsx index 63217a37..f559085a 100644 --- a/src/components/Problems/Problems.tsx +++ b/src/components/Problems/Problems.tsx @@ -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(new Date(series?.deadline ?? '') < new Date()) useInterval(