Skip to content

Commit a832523

Browse files
committed
Reset currentQuestion
1 parent 7c2e195 commit a832523

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/context/QuizContextProvider.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { questions } from '../data/questions';
44
import confetti from 'canvas-confetti';
55

66
export const QuizContextProvider = ({ children }) => {
7-
const [currentQuestion, setCurrentQuestion] = useState(24);
7+
const [currentQuestion, setCurrentQuestion] = useState(0);
88
const [selectedOption, setSelectedOption] = useState(null);
99
const [score, setScore] = useState(0);
1010
const [completed, setCompleted] = useState(false);

0 commit comments

Comments
 (0)