From ccc31c51c99945b5f0634bbe2ce11851d86ae367 Mon Sep 17 00:00:00 2001 From: Davinci Date: Fri, 17 May 2024 13:49:23 +0200 Subject: [PATCH] fix: userRobotImage reducer type fix --- src/store/userRobotImage/reducer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/userRobotImage/reducer.ts b/src/store/userRobotImage/reducer.ts index 61369ed..4235a48 100644 --- a/src/store/userRobotImage/reducer.ts +++ b/src/store/userRobotImage/reducer.ts @@ -6,13 +6,13 @@ const initialState: string | null = null const reducer = ( state = initialState, action: MetadataDispatchTypes -): string | null => { +): string | null | undefined => { switch (action.type) { case ActionTypes.SET_USER_ROBOT_IMAGE: return action.payload case ActionTypes.RESTORE_STATE: - return action.payload.userRobotImage || null + return action.payload.userRobotImage default: return state