Browse Source

initial user state

pull/8/head
Tim Glasgow 2 years ago
parent
commit
fda3390cd2
  1. 7
      squarenotsquare/src/redux/reducers/UserReducer.js

7
squarenotsquare/src/redux/reducers/UserReducer.js

@ -4,7 +4,12 @@ import {
SQUARE_FINISHED
} from '../types/UserTypes';
function usr(state = {}, action) {
const initialUserState = {
lastGameTime: null,
lastGameScore: null
}
function usr(state = initialUserState, action) {
switch (action.type) {
case SQUARE_START:
case SQUARE_FINISHED:

Loading…
Cancel
Save