We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9bef50 commit 59a5f53Copy full SHA for 59a5f53
components/QuizForm.tsx
@@ -54,6 +54,9 @@ const QuizForm: FC<Props> = ({
54
};
55
56
if (isLoading) return <p>Loading...</p>;
57
+ //Error Handling for loading issues
58
+ if (!questionSet) return <p>Loading questions failed</p>;
59
+
60
const { question, options, images } = questionSet!;
61
const watchInput = watch(`options.${currentQuestionIndex}`);
62
0 commit comments