fix: userRobotImage reducer type fix
This commit is contained in:
parent
2cb7088f5e
commit
ccc31c51c9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user