Add else handlers with logging in toggleVerified catch handler

FREEBIE
pull/749/head
Scott Nonnenberg 8 years ago
parent 8112cd220a
commit 697079cf9b

@ -74,6 +74,8 @@
if (result instanceof Error) {
if (result.name === 'OutgoingIdentityKeyError') {
this.onSafetyNumberChanged();
} else {
console.log('failed to toggle verified:', result.stack);
}
} else {
var keyError = _.some(result.errors, function(error) {
@ -81,6 +83,10 @@
});
if (keyError) {
this.onSafetyNumberChanged();
} else {
_.forEach(result.errors, function(error) {
console.log('failed to toggle verified:', error.stack);
});
}
}
}.bind(this)).then(function() {

Loading…
Cancel
Save