Fix duplicate request of password or touchid

This commit is contained in:
Gustavo Maximiliano Cortez 2016-02-25 10:41:04 -03:00
commit 72ac721642
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF

View file

@ -944,16 +944,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
self.setOngoingProcess(); self.setOngoingProcess();
self.setSendError(err); self.setSendError(err);
} else { } else {
self.prepareSignAndBroadcastTx(txpPublished); txService.signAndBroadcast(txpPublished, {
}
});
});
};
this.prepareSignAndBroadcastTx = function(txp) {
var fc = profileService.focusedClient;
var self = this;
txService.prepareAndSignAndBroadcast(txp, {
reporterFn: self.setOngoingProcess.bind(self) reporterFn: self.setOngoingProcess.bind(self)
}, function(err, txp) { }, function(err, txp) {
self.resetForm(); self.resetForm();
@ -971,6 +962,9 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
}); });
} }
}); });
}
});
});
}; };
this.setForm = function(to, amount, comment) { this.setForm = function(to, amount, comment) {