Merge pull request #3977 from matiu/v19

fix prevent submit
This commit is contained in:
Matias Alejo Garcia 2016-03-09 08:20:48 -03:00
commit 139adb9974

View file

@ -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