Updated hydrateStore action on redux load to check if accounts exist
• Updated: - hydrateStore action on redux load to check if accounts exist
This commit is contained in:
parent
a62de51b78
commit
5e11576de4
|
@ -10,7 +10,7 @@ const convertState = rawState =>
|
|||
Iterable.isIndexed(v) ? v.toList() : v.toMap());
|
||||
|
||||
export function hydrateStore(rawState) {
|
||||
return dispatch => {
|
||||
return (dispatch) => {
|
||||
const state = convertState(rawState);
|
||||
|
||||
dispatch({
|
||||
|
@ -19,6 +19,6 @@ export function hydrateStore(rawState) {
|
|||
});
|
||||
|
||||
dispatch(hydrateCompose());
|
||||
dispatch(importFetchedAccounts(Object.values(rawState.accounts)));
|
||||
if (rawState.accounts) dispatch(importFetchedAccounts(Object.values(rawState.accounts)));
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue