From 39bf6e6018dfecdd6b9bf3d1799f69779ab33591 Mon Sep 17 00:00:00 2001 From: Leung Cheng Date: Tue, 7 May 2024 17:44:52 +0800 Subject: [PATCH] Refactor error handling in quiz --- src/app/components/quiz.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/components/quiz.tsx b/src/app/components/quiz.tsx index 70f08d2..c7b2cbf 100644 --- a/src/app/components/quiz.tsx +++ b/src/app/components/quiz.tsx @@ -131,7 +131,9 @@ function MultipleChoiceQuiz({ e.cause.code === 'QUESTION_SET_NOT_FOUND' ) { setNotFound(true) + return } + throw e } }, [fetchQuestionSet])