Refactored Wallet#createTx

This commit is contained in:
Ivan Socolsky 2014-09-08 15:50:20 -03:00
commit 152ab7aa44
4 changed files with 29 additions and 44 deletions

View file

@ -116,7 +116,7 @@ angular.module('copayApp.controllers').controller('SendController',
var w = $rootScope.wallet;
function done(ntxid, merchantData) {
function done(err, ntxid, merchantData) {
// If user is granted the privilege of choosing
// their own amount, add it to the tx.
if (merchantData && +merchantData.total === 0) {