From 0b96e2f8da3d0e5c8e555f0d15f43eb7fef069b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Tue, 11 Jul 2017 12:28:47 -0300 Subject: [PATCH] fix error in translation --- src/js/controllers/confirm.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/js/controllers/confirm.js b/src/js/controllers/confirm.js index f688ed3fc..86819abd1 100644 --- a/src/js/controllers/confirm.js +++ b/src/js/controllers/confirm.js @@ -60,7 +60,7 @@ angular.module('copayApp.controllers').controller('confirmController', function( function setNoWallet(msg) { $scope.wallet = null; - $scope.noWalletMessage = gettextCatalog.getString(msg); + $scope.noWalletMessage = msg; $log.warn('Not ready to make the payment:' + msg); $timeout(function() { $scope.$apply(); @@ -80,7 +80,7 @@ angular.module('copayApp.controllers').controller('confirmController', function( }); if (!$scope.wallets || !$scope.wallets.length) { - setNoWallet('No wallets available'); + setNoWallet(gettextCatalog.getString('No wallets available')); return cb(); } @@ -109,7 +109,7 @@ angular.module('copayApp.controllers').controller('confirmController', function( return cb('Could not update any wallet'); if (lodash.isEmpty(filteredWallets)) { - setNoWallet('Insufficent funds'); + setNoWallet(gettextCatalog.getString('Insufficent funds')); } $scope.wallets = lodash.clone(filteredWallets); return cb(); @@ -272,7 +272,7 @@ angular.module('copayApp.controllers').controller('confirmController', function( $log.debug('Send max info', sendMaxInfo); if (tx.sendMax && sendMaxInfo.amount == 0) { - setNoWallet('Insufficent funds'); + setNoWallet(gettextCatalog.getString('Insufficent funds')); popupService.showAlert(gettextCatalog.getString('Error'), gettextCatalog.getString('Not enough funds for fee')); return cb('no_funds'); }