Disable submit button when cannot submit

This commit is contained in:
2026-01-08 02:11:23 +01:00
parent 540b544eed
commit 1073bc1ada

View File

@@ -491,7 +491,7 @@ export default function QuizRunner({ defaultMode = 'all', defaultEntryId, autoSt
)} )}
{!showResult ? ( {!showResult ? (
<> <>
<button className="button" onClick={() => handleSubmit(false)}> <button className="button" onClick={() => handleSubmit(false)} disabled={!canSubmit}>
Submit Submit
</button> </button>
<button className="button button--ghost" onClick={() => handleSubmit(true)}> <button className="button button--ghost" onClick={() => handleSubmit(true)}>