Fix accounts' display name/bio not being set from initial state (#6644)

th-downstream
Eugen Rochko 7 years ago committed by GitHub
parent 01d10b0bd8
commit 6e72faaa78

@ -102,7 +102,7 @@ const initialState = ImmutableMap();
export default function accounts(state = initialState, action) {
switch(action.type) {
case STORE_HYDRATE:
return state.merge(action.state.get('accounts'));
return normalizeAccounts(state, Object.values(action.state.get('accounts').toJS()));
case ACCOUNT_FETCH_SUCCESS:
case NOTIFICATIONS_UPDATE:
return normalizeAccount(state, action.account);

Loading…
Cancel
Save