fix 'account invalid number' error when join by using ledger source

This commit is contained in:
Tang Bo Hao 2017-06-23 18:29:36 +08:00
parent f6245652d9
commit bb528ff4ab
1 changed files with 1 additions and 1 deletions

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;