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:
mgabdev 2020-11-09 12:34:52 -06:00
parent a62de51b78
commit 5e11576de4
1 changed files with 2 additions and 2 deletions

View File

@ -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)));
};
};