Profile pictures incosistencies #58
@ -6,13 +6,13 @@ const initialState: string | null = null
|
|||||||
const reducer = (
|
const reducer = (
|
||||||
state = initialState,
|
state = initialState,
|
||||||
action: MetadataDispatchTypes
|
action: MetadataDispatchTypes
|
||||||
): string | null => {
|
): string | null | undefined => {
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
case ActionTypes.SET_USER_ROBOT_IMAGE:
|
case ActionTypes.SET_USER_ROBOT_IMAGE:
|
||||||
return action.payload
|
return action.payload
|
||||||
|
|
||||||
case ActionTypes.RESTORE_STATE:
|
case ActionTypes.RESTORE_STATE:
|
||||||
return action.payload.userRobotImage || null
|
return action.payload.userRobotImage
|
||||||
m marked this conversation as resolved
Outdated
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
return state
|
return state
|
||||||
|
Loading…
Reference in New Issue
Block a user
|| null
is not needed in such case