diff --git a/app/src/utils/orbitUtils.js b/app/src/utils/orbitUtils.js index 91fc2e6..6d62bd2 100644 --- a/app/src/utils/orbitUtils.js +++ b/app/src/utils/orbitUtils.js @@ -55,9 +55,7 @@ async function loadDatabases(identityId, identityPublicKey, identityPrivateKey, await topicsDB.load(); await postsDB.load(); - updateDatabases(DATABASES_LOADED, orbitdb, topicsDB, postsDB); - - return { orbitdb, topicsDB, postsDB }; + store.dispatch(updateDatabases(DATABASES_LOADED, orbitdb, topicsDB, postsDB)); } function getIPFS(){