Commit 5e11576d authored by mgabdev's avatar mgabdev

Updated hydrateStore action on redux load to check if accounts exist

• Updated:
- hydrateStore action on redux load to check if accounts exist
parent a62de51b
......@@ -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)));
};
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment