File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/components/Quiz/QuizWidget Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export type QuizButtonGroupProps = {
9
9
showAnswer : boolean
10
10
showResults : boolean
11
11
quizScore : number
12
- initialize : ( ) => void
12
+ handleReset : ( ) => void
13
13
currentQuestionIndex : number
14
14
currentQuestionAnswerChoice : AnswerChoice | null
15
15
questions : Question [ ]
@@ -28,7 +28,7 @@ export const QuizButtonGroup = (props: QuizButtonGroupProps) => {
28
28
showResults,
29
29
quizScore,
30
30
questions,
31
- initialize ,
31
+ handleReset ,
32
32
currentQuestionIndex,
33
33
currentQuestionAnswerChoice,
34
34
finishedQuiz,
@@ -72,7 +72,7 @@ export const QuizButtonGroup = (props: QuizButtonGroupProps) => {
72
72
73
73
{ hasNotPerfectQuizScore ? (
74
74
< Button
75
- onClick = { initialize }
75
+ onClick = { handleReset }
76
76
variant = "ghost"
77
77
fontWeight = "bold"
78
78
textDecoration = "underline"
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ const QuizWidget: React.FC<IProps> = (props) => {
128
128
handleSubmitAnswer = { handleSubmitAnswer }
129
129
handleShare = { handleShare }
130
130
hasNextQuiz = { hasNextQuiz }
131
- initialize = { initialize }
131
+ handleReset = { initialize }
132
132
currentQuestionIndex = { currentQuestionIndex }
133
133
questions = { quizData . questions }
134
134
quizScore = { quizScore }
You can’t perform that action at this time.
0 commit comments