Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-masud committed Dec 8, 2024
1 parent 8902baf commit 0ce4769
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/pages/quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,7 @@ const Quiz = () => {
};

if (loading) {
return <div>Loading quiz...</div>;
}

if (!quizData) {
return <div>Quiz not found.</div>;
return null;
}

const currentQuestion = quizData.questions[currentQuestionIndex];
Expand Down

0 comments on commit 0ce4769

Please # to comment.