chore: handle restore state action in user reducer
This commit is contained in:
parent
95f5398736
commit
c4c0ecba4a
@ -23,8 +23,8 @@ const reducer = (
|
|||||||
profile: action.payload
|
profile: action.payload
|
||||||
}
|
}
|
||||||
|
|
||||||
// case ActionTypes.RESTORE_STATE:
|
case ActionTypes.RESTORE_STATE:
|
||||||
// return action.payload.
|
return action.payload.user || initialState
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return state
|
return state
|
||||||
|
Loading…
Reference in New Issue
Block a user