chore: handle restore state action in user reducer

This commit is contained in:
daniyal 2025-01-04 11:21:49 +05:00
parent 95f5398736
commit c4c0ecba4a

View File

@ -23,8 +23,8 @@ const reducer = (
profile: action.payload
}
// case ActionTypes.RESTORE_STATE:
// return action.payload.
case ActionTypes.RESTORE_STATE:
return action.payload.user || initialState
default:
return state