Skip to content

Commit 17109ce

Browse files
Fix hook
1 parent 8db5dd2 commit 17109ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/QuizExamForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const QuizExamForm: FC<Props> = ({
4545
}) => {
4646
const [showCorrectAnswer, setShowCorrectAnswer] = useState<boolean>(false);
4747
const [savedAnswers, setSavedAnswers] = useState<any>([]);
48-
const { points, reCount } = useResults(savedAnswers);
48+
const { points, reCount } = useResults();
4949
const [selectedImage, setSelectedImage] = useState<{
5050
url: string;
5151
alt: string;

hooks/useResults.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export type ResultsHook = {
1111
reCount: (data: ResultsData) => void;
1212
};
1313

14-
const useResults = (data: ResultsData): ResultsHook => {
14+
const useResults = (): ResultsHook => {
1515
const [points, setPoints] = useState(0);
1616

1717
const countPoints = (data: ResultsData) => {

0 commit comments

Comments
 (0)