add email to account deletion

This commit is contained in:
Matias Alejo Garcia 2017-02-01 11:36:05 -03:00
commit 4911d50b0d
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
2 changed files with 5 additions and 5 deletions

View file

@ -391,12 +391,12 @@ angular.module('copayApp.services')
var allCards = [];
lodash.each(allAccounts, function(account) {
lodash.each(allAccounts, function(account, email) {
// Add account's email to card list, for convenience
var cards = lodash.clone(account.cards);
lodash.each(allAccounts, function(x) {
x.email = account.email;
lodash.each(cards, function(x) {
x.email = email;
});
allCards = allCards.concat(cards);