Skip to content

Commit

Permalink
Bug fix for History when quizzes taken is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtan2000 committed Aug 26, 2024
1 parent 0c1a97f commit 83d2dc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/(main)/quiz/history/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const QuizHistory: React.FC = () => {
<div className="col-12">
<div className="card">
<h5>Quizzes</h5>
<p>You currently have completed {quiz?.quizzes.length || 0} quizzes.</p>
<p>You currently have completed {quiz?.quizzes ? quiz.quizzes.length : 0} quizzes.</p>
<DataTable value={quiz?.quizzes} tableStyle={{ minWidth: '50rem' }}>
<Column field="id" header="Quiz Id"></Column>
<Column field="points" header="Points"></Column>
Expand Down

0 comments on commit 83d2dc7

Please sign in to comment.