fix prevent submit

This commit is contained in:
Javier 2016-03-08 15:05:01 -03:00 committed by Matias Alejo Garcia
commit b9ffa19965

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