We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc717a0 commit 253b95fCopy full SHA for 253b95f
code/src/reducers/games.js
@@ -22,8 +22,8 @@ export const games = createSlice({
22
},
23
setPreviousGameStatus: (store) => {
24
if (store.history.length) {
25
- store.saveGameStatus = store.history[store.history.length - 1];
26
- store.history = store.history.slice(0, store.history.length - 1);
+ store.gameStatus = store.history[store.history.length - 1]
+ store.history = store.history.slice(1, store.history.length - 1)
27
}
28
29
setError: (store, action) => {
0 commit comments