From c4c0ecba4aa017da69374e45299affd9dd2ed58f Mon Sep 17 00:00:00 2001 From: daniyal Date: Sat, 4 Jan 2025 11:21:49 +0500 Subject: [PATCH] chore: handle restore state action in user reducer --- src/store/user/reducer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/user/reducer.ts b/src/store/user/reducer.ts index f160462..b48baca 100644 --- a/src/store/user/reducer.ts +++ b/src/store/user/reducer.ts @@ -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