Don't double-render key conflict errors

// FREEBIE
This commit is contained in:
lilia 2015-10-02 12:28:40 -07:00
parent 7ec4700431
commit b42626923c

View file

@ -10,7 +10,10 @@
templateName: 'contact-detail',
initialize: function(options) {
this.conflict = options.conflict;
this.errors = options.errors;
this.errors = _.reject(options.errors, function(e) {
return (e.name === 'IncomingIdentityKeyError' ||
e.name === 'OutgoingIdentityKeyError');
});
},
events: {
'click .conflict': 'triggerConflict'