Skip to content

Commit e2c46b3

Browse files
Fix types
1 parent 2de91a6 commit e2c46b3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

app/exam/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const Exam: NextPage<{ searchParams: { url: string; name: string } }> = ({
128128
totalQuestions={data.randomQuestions?.length}
129129
currentQuestionIndex={currentQuestionIndex}
130130
question={currentQuestion?.question ?? ""}
131-
options={currentQuestion?.options}
131+
options={currentQuestion?.options ?? []}
132132
images={currentQuestion?.images}
133133
stopTimer={stopTimer}
134134
revealExam={revealExam}

components/QuizExamFormUF.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { useForm, useFieldArray, Controller } from "react-hook-form";
44
import { Button } from "./Button";
55
import useResults from "@azure-fundamentals/hooks/useResults";
66
import { Question, Option } from "@azure-fundamentals/components/types";
7-
import { valueFromAST } from "graphql";
87

98
type Props = {
109
isLoading: boolean;

0 commit comments

Comments
 (0)