Fix rate
This commit is contained in:
parent
bc2d530e90
commit
45bb0f0076
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue