Skip to content

Commit

Permalink
Refactor error handling in quiz
Browse files Browse the repository at this point in the history
  • Loading branch information
leung018 committed May 7, 2024
1 parent fa6880f commit 39bf6e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/components/quiz.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ function MultipleChoiceQuiz({
e.cause.code === 'QUESTION_SET_NOT_FOUND'
) {
setNotFound(true)
return
}
throw e
}
}, [fetchQuestionSet])

Expand Down

0 comments on commit 39bf6e6

Please sign in to comment.