if not enough funds, now states 'insufficient confirmed funds'

This commit is contained in:
Kadir Sekha 2018-01-29 17:13:59 -04:00
commit 8e89e95a34
2 changed files with 3 additions and 3 deletions

View file

@ -119,7 +119,7 @@ angular.module('copayApp.controllers').controller('confirmController', function(
return cb('Could not update any wallet'); return cb('Could not update any wallet');
if (lodash.isEmpty(filteredWallets)) { if (lodash.isEmpty(filteredWallets)) {
setNoWallet(gettextCatalog.getString('Insufficient funds'), true); setNoWallet(gettextCatalog.getString('Insufficient confirmed funds'), true);
} }
$scope.wallets = lodash.clone(filteredWallets); $scope.wallets = lodash.clone(filteredWallets);
return cb(); return cb();
@ -313,7 +313,7 @@ angular.module('copayApp.controllers').controller('confirmController', function(
if (tx.sendMax && sendMaxInfo.amount == 0) { if (tx.sendMax && sendMaxInfo.amount == 0) {
ongoingProcess.set('calculatingFee', false); ongoingProcess.set('calculatingFee', false);
setNoWallet(gettextCatalog.getString('Insufficient funds')); setNoWallet(gettextCatalog.getString('Insufficient confirmed funds'));
popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('Not enough funds for fee')); popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('Not enough funds for fee'));
return cb('no_funds'); return cb('no_funds');
} }

View file

@ -41,7 +41,7 @@ angular.module('copayApp.services')
body = gettextCatalog.getString('Could not build transaction'); body = gettextCatalog.getString('Could not build transaction');
break; break;
case 'INSUFFICIENT_FUNDS': case 'INSUFFICIENT_FUNDS':
body = gettextCatalog.getString('Insufficient funds'); body = gettextCatalog.getString('Insufficient confirmed funds');
break; break;
case 'CONNECTION_ERROR': case 'CONNECTION_ERROR':
body = gettextCatalog.getString('Network error'); body = gettextCatalog.getString('Network error');