From 540b544eedaa899c4176147cce56c8ee42b502be Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 8 Jan 2026 02:11:16 +0100 Subject: [PATCH] Fix logic for determining canSubmit in QuizRunner --- client/src/components/QuizRunner.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/components/QuizRunner.tsx b/client/src/components/QuizRunner.tsx index 945dece..ccad6b9 100644 --- a/client/src/components/QuizRunner.tsx +++ b/client/src/components/QuizRunner.tsx @@ -467,10 +467,10 @@ export default function QuizRunner({ defaultMode = 'all', defaultEntryId, autoSt lastCorrect={lastCorrect} canSubmit={Boolean( (currentQuestion.type === 'cloze' && response && String(response).trim().length > 0) || - (currentQuestion.type === 'match' && response && Object.values(response).every((v) => v)) || - ((currentQuestion.type || '').startsWith('mc') && typeof response === 'number') || - (currentQuestion.type === 'choose_best_reply' && typeof response === 'number') || - (!currentQuestion.type && typeof response === 'number') + (currentQuestion.type === 'match' && response && Object.values(response).every((v) => v)) || + ((currentQuestion.type || '').startsWith('mc') && typeof response === 'number') || + (currentQuestion.type === 'choose_best_reply' && typeof response === 'number') || + (!currentQuestion.type && typeof response === 'number') )} />