Skip to content
Permalink
Browse files

fix: fix rejection when waiting for image

  • Loading branch information...
satazor committed May 30, 2019
1 parent e8c1470 commit d4ad76341633f7bb7ef110246247af902f548249
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/identities/identity/profile.js
@@ -125,7 +125,7 @@ const waitProfileReplication = async (orbitdbStore, blobStore) => {

if (image) {
await Promise.race([
pDelay(PEEK_REPLICATION_WAIT_TIME).then(() => new ProfileReplicationTimeoutError()),
pDelay.reject(PEEK_REPLICATION_WAIT_TIME, { value: new ProfileReplicationTimeoutError() }),
blobStore.sync({ image }).catch((err) => {
console.warn('Unable to replicate image blob, skipping..', err);
}),

0 comments on commit d4ad763

Please sign in to comment.
You can’t perform that action at this time.