Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sun-amy committed Aug 1, 2024
1 parent 891a400 commit 41e723e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Quiz/Quiz.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function Quiz () {
if (currentIndex === listOfQuestions.length-1) {
setButtonText("Finish")
}
}, [currentIndex]);
}, [currentIndex, listOfQuestions.length]);

function updateCurrentIndex() {
if (currentIndex < listOfQuestions.length-1) {
Expand Down

0 comments on commit 41e723e

Please sign in to comment.