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.setSendError(err);
|
||||
} else {
|
||||
self.prepareSignAndBroadcastTx(txpPublished);
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
this.prepareSignAndBroadcastTx = function(txp) {
|
||||
var fc = profileService.focusedClient;
|
||||
var self = this;
|
||||
txService.prepareAndSignAndBroadcast(txp, {
|
||||
txService.signAndBroadcast(txpPublished, {
|
||||
reporterFn: self.setOngoingProcess.bind(self)
|
||||
}, function(err, txp) {
|
||||
self.resetForm();
|
||||
|
|
@ -971,6 +962,9 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
|||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
this.setForm = function(to, amount, comment) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue