Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
Merge pull request #254 from blockchain/build-tx
Browse files Browse the repository at this point in the history
fix(send): check tx build without copying payment object
  • Loading branch information
Sjors committed Jan 21, 2016
2 parents 91f842e + 94ff053 commit 0fc519f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions assets/js/controllers/send.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,12 @@ function SendCtrl($scope, $log, Wallet, Alerts, currency, $uibModalInstance, $ti
$scope.setPaymentTo();
$scope.setPaymentAmount();
$scope.setPaymentFee();
angular.copy($scope.payment)
.buildbeta()
.then($scope.buildTx)

$scope.payment.buildbeta()
.then((p) => {
$scope.buildTx();
return p;
})
.catch(response => {
let msg = response.error.message || response.error;
$scope.backToForm();
Expand Down

0 comments on commit 0fc519f

Please sign in to comment.