Removes duplicated variables. Fix syntax

This commit is contained in:
Gustavo Maximiliano Cortez 2017-09-07 17:16:14 -03:00
commit fbeb5eadc9
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF

View file

@ -334,7 +334,6 @@ angular.module('copayApp.controllers').controller('confirmController', function(
}
function setButtonText(isMultisig, isPayPro) {
$scope.buttonText = gettextCatalog.getString(isCordova && !isWindowsPhoneApp ? 'Slide' : 'Click') + ' ';
if (isPayPro) {
if (isCordova && !isWindowsPhoneApp) {
@ -348,11 +347,12 @@ angular.module('copayApp.controllers').controller('confirmController', function(
} else {
$scope.buttonText = gettextCatalog.getString('Click to accept');
}
} else
if (isCordova && !isWindowsPhoneApp) {
$scope.buttonText = gettextCatalog.getString('Slide to send');
} else {
$scope.buttonText = gettextCatalog.getString('Click to send');
if (isCordova && !isWindowsPhoneApp) {
$scope.buttonText = gettextCatalog.getString('Slide to send');
} else {
$scope.buttonText = gettextCatalog.getString('Click to send');
}
}
};