Fix duplicate request of password or touchid
This commit is contained in:
parent
9ecbe53de6
commit
72ac721642
1 changed files with 18 additions and 24 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue