Skip to content

Commit

Permalink
Fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtan2000 committed Aug 15, 2024
1 parent b4d6e09 commit 61a265b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/(main)/quiz/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ const QuizPage: React.FC = () => {
try {
const responseData = await QuizService.getQuizInProgress();
setData(responseData);
// console.log('responseData.message', responseData.message)
if (responseData.message === 'Quiz not found') {
setData(null);
return;
}
// Initialize selectedOptions with keys for each mcq.id set to null
const initialSelectedOptions: { [key: number]: number | null } = {};
responseData.mcqs.forEach((mcq) => {
Expand Down

0 comments on commit 61a265b

Please sign in to comment.