Browse Source

[Glitch] Fix accounts' display name/bio not being set from initial state

Port 20d1be18af to glitch-soc
closed-social-glitch-2
Thibaut Girka 6 years ago
committed by ThibG
parent
commit
4cf7cfd9e0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/flavours/glitch/reducers/accounts.js

+ 1
- 1
app/javascript/flavours/glitch/reducers/accounts.js View File

@ -122,7 +122,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