Skip to content

Commit 6bef377

Browse files
committed
Fixed score counting bug
1 parent fa0fb61 commit 6bef377

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/store/reducer.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ const reducer = (state = initialState, action) => {
4343
if (state.get("questionId") <= state.get("totalQuestions") - 2) {
4444
return state.set("questionId", state.get("questionId") + 1);
4545
} else {
46-
return state
47-
.set("score", state.get("score") + 1)
48-
.set("phase", gamePhase.RESULT_SCREEN);
46+
return state.set("phase", gamePhase.RESULT_SCREEN);
4947
}
5048

5149
case actionTypes.RESET_GAME:

0 commit comments

Comments
 (0)