Conditionally render back button in QuizRunner

This commit is contained in:
2026-01-08 02:09:44 +01:00
parent 8dcea82fcd
commit fad98dc4e0

View File

@@ -475,9 +475,11 @@ export default function QuizRunner({ defaultMode = 'all', defaultEntryId, autoSt
)}
<div className="quiz-actions">
<button className="button button--ghost" onClick={goPrev} disabled={currentIndex === 0}>
Back
</button>
{currentIndex > 0 && (
<button className="button button--ghost" onClick={goPrev}>
Back
</button>
)}
{!showResult ? (
<>
<button className="button" onClick={() => handleSubmit(false)}>