Profile pictures incosistencies #58

Merged
b merged 7 commits from pictures-fixes into main 2024-05-17 11:52:36 +00:00
Showing only changes of commit ccc31c51c9 - Show all commits

View File

@ -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
m marked this conversation as resolved Outdated
Outdated
Review

|| null is not needed in such case

`|| null` is not needed in such case
default:
return state