More bullet-proofing - reject surrounding promise if save() fails
FREEBIE
This commit is contained in:
@@ -457,7 +457,7 @@
|
|||||||
nonblockingApproval : nonblockingApproval,
|
nonblockingApproval : nonblockingApproval,
|
||||||
}).then(function() {
|
}).then(function() {
|
||||||
resolve(false);
|
resolve(false);
|
||||||
});
|
}, reject);
|
||||||
} else if (!equalArrayBuffers(oldpublicKey, publicKey)) {
|
} else if (!equalArrayBuffers(oldpublicKey, publicKey)) {
|
||||||
console.log("Replacing existing identity...");
|
console.log("Replacing existing identity...");
|
||||||
var previousStatus = identityRecord.get('verified');
|
var previousStatus = identityRecord.get('verified');
|
||||||
@@ -486,7 +486,7 @@
|
|||||||
nonblockingApproval : nonblockingApproval,
|
nonblockingApproval : nonblockingApproval,
|
||||||
}).then(function() {
|
}).then(function() {
|
||||||
resolve(false);
|
resolve(false);
|
||||||
});
|
}, reject);
|
||||||
} else {
|
} else {
|
||||||
resolve(false);
|
resolve(false);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user