From 14f9da2a10c1e6cb94c0fd7c3fe12f95d3712384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=BA=C5=A1=20Hlav=C3=A1=C4=8Dik?= Date: Fri, 8 Dec 2023 15:46:39 +0100 Subject: [PATCH] Fix `canResubmit` fallback (#232) --- 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(