Properly convert boolean string param to a boolean.

This commit is contained in:
Andy Phillipson 2016-12-16 16:28:04 -05:00
commit 9ad65ec876
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ angular.module('copayApp.controllers').controller('amountController', function($
$scope.cardId = data.stateParams.cardId;
$scope.showMenu = $ionicHistory.backView().stateName == 'tabs.send';
$scope.isWallet = data.stateParams.isWallet;
$scope.isWallet = (data.stateParams.isWallet.trim().toLowerCase() == 'true' ? true : false);
$scope.toAddress = data.stateParams.toAddress;
$scope.toName = data.stateParams.toName;
$scope.toEmail = data.stateParams.toEmail;

View file

@ -28,7 +28,7 @@ angular.module('copayApp.controllers').controller('confirmController', function(
toAmount = data.stateParams.toAmount;
cachedSendMax = {};
$scope.useSendMax = data.stateParams.useSendMax == 'true' ? true : false;
$scope.isWallet = data.stateParams.isWallet;
$scope.isWallet = (data.stateParams.isWallet.trim().toLowerCase() == 'true' ? true : false);
$scope.cardId = data.stateParams.cardId;
$scope.toAddress = data.stateParams.toAddress;
$scope.toName = data.stateParams.toName;