We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b1f4790 + 8d85da6 commit 248bc24Copy full SHA for 248bc24
src/EnterQuizResults.tsx
@@ -107,9 +107,11 @@ export default function EnterQuizResults() {
107
onChange={(e) => setManuallyEnteredTotalScore(parseFloat((e.target as HTMLInputElement).value))}
108
className='shadow-sm focus:ring-indigo-500 focus:border-indigo-500 mt-1 block w-full sm:text-sm border border-gray-300 rounded-md'
109
/>
110
- <Link to={`/quiz/${id}/question/1`}>
111
- <Button>Individual Entry</Button>
112
- </Link>
+ {(data.quiz.questions?.length ?? 0) > 0 && (
+ <Link to={`/quiz/${id}/question/1`}>
+ <Button>Individual Entry</Button>
113
+ </Link>
114
+ )}
115
</div>
116
)}
117
0 commit comments