diff --git a/lib/reducers/user-reducer.js b/lib/reducers/user-reducer.js --- a/lib/reducers/user-reducer.js +++ b/lib/reducers/user-reducer.js @@ -14,6 +14,7 @@ logInActionTypes, registerActionTypes, setUserSettingsActionTypes, + updateUserAvatarActionTypes, } from '../actions/user-actions.js'; import type { BaseAction } from '../types/redux-types.js'; import { @@ -93,6 +94,15 @@ ) { return checkStateRequest.stateChanges.currentUserInfo; } + } else if ( + action.type === updateUserAvatarActionTypes.success && + state && + !state.anonymous + ) { + return { + ...state, + avatar: action.payload, + }; } else if (action.type === setUserSettingsActionTypes.success) { if (state?.settings) { return {