Merge pull request #6287 from btspoony/master

fix 'account invalid number' error  when join by using ledger source
This commit is contained in:
Matias Alejo Garcia 2017-06-23 13:18:39 +02:00 committed by GitHub
commit 8624b1dbb0

View file

@ -136,7 +136,7 @@ angular.module('copayApp.controllers').controller('joinController',
}
if ($scope.formData.seedSource.id == walletService.externalSource.ledger.id || $scope.formData.seedSource.id == walletService.externalSource.trezor.id || $scope.formData.seedSource.id == walletService.externalSource.intelTEE.id) {
var account = $scope.account;
var account = $scope.formData.account;
if (!account || account < 1) {
popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('Invalid account number'));
return;