This commit is contained in:
Gustavo Maximiliano Cortez 2017-03-27 11:38:17 -03:00
commit 45bb0f0076
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF

View file

@ -64,7 +64,6 @@ angular.module('copayApp.controllers').controller('topUpController', function($s
amount = parsedAmount.amount; amount = parsedAmount.amount;
currency = parsedAmount.currency; currency = parsedAmount.currency;
$scope.amountUnitStr = parsedAmount.amountUnitStr; $scope.amountUnitStr = parsedAmount.amountUnitStr;
$scope.alternativeIsoCode = parsedAmount.alternativeIsoCode;
$scope.network = bitpayService.getEnvironment().network; $scope.network = bitpayService.getEnvironment().network;
$scope.wallets = profileService.getWallets({ $scope.wallets = profileService.getWallets({
@ -80,7 +79,7 @@ angular.module('copayApp.controllers').controller('topUpController', function($s
} }
$scope.onWalletSelect($scope.wallets[0]); // Default first wallet $scope.onWalletSelect($scope.wallets[0]); // Default first wallet
bitpayCardService.getRates($scope.alternativeIsoCode, function(err, data) { bitpayCardService.getRates('USD', function(err, data) {
if (err) $log.error(err); if (err) $log.error(err);
$scope.rate = data.rate; $scope.rate = data.rate;
}); });