fix prevent submit
This commit is contained in:
parent
be2f2466d3
commit
b9ffa19965
1 changed files with 6 additions and 10 deletions
|
|
@ -856,6 +856,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
|||
};
|
||||
|
||||
this.submitForm = function() {
|
||||
if (!$scope._amount || !$scope._address || self.destinationWalletNeedsBackup) return;
|
||||
var fc = profileService.focusedClient;
|
||||
var unitToSat = this.unitToSatoshi;
|
||||
var currentSpendUnconfirmed = configWallet.spendUnconfirmed;
|
||||
|
|
@ -870,11 +871,6 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
|||
}
|
||||
|
||||
var form = $scope.sendForm;
|
||||
if (form.$invalid) {
|
||||
this.error = gettext('Unable to send transaction proposal');
|
||||
return;
|
||||
}
|
||||
|
||||
var comment = form.comment.$modelValue;
|
||||
|
||||
// ToDo: use a credential's (or fc's) function for this
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue