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 844f534 commit e41f77bCopy full SHA for e41f77b
src/context/QuizContextProvider.jsx
@@ -36,7 +36,12 @@ export const QuizContextProvider = ({ children }) => {
36
const handleNext = () => {
37
currentQuestion < shuffleQuestions.length - 1
38
? setCurrentQuestion(currentQuestion + 1)
39
- : setCompleted(true);
+ : setCompleted(true),
40
+ confetti({
41
+ particleCount: 150,
42
+ spread: 360,
43
+ origin: { y: 0.3, x: 0.5 },
44
+ });
45
46
setSelectedOption(null);
47
};
0 commit comments