diff --git a/squarenotsquare/src/redux/reducers/UserReducer.js b/squarenotsquare/src/redux/reducers/UserReducer.js index 5b79559..4346c1a 100644 --- a/squarenotsquare/src/redux/reducers/UserReducer.js +++ b/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: