Fix currency

This commit is contained in:
Gustavo Maximiliano Cortez 2017-06-05 12:09:48 -03:00
commit f6d7a50b00
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
5 changed files with 9 additions and 30 deletions

View file

@ -184,7 +184,6 @@ angular.module('copayApp.controllers').controller('bitpayCardController', functi
$scope.$on("$ionicView.beforeEnter", function(event, data) {
$scope.cardId = data.stateParams.id;
$scope.currency = bitpayCardService.getAvailableCurrency();
if (!$scope.cardId) {
$ionicHistory.nextViewOptions({
@ -204,6 +203,7 @@ angular.module('copayApp.controllers').controller('bitpayCardController', functi
self.balance = cards[0].balance;
self.currencySymbol = cards[0].currencySymbol;
self.updatedOn = cards[0].updatedOn;
self.currency = cards[0].currency;
}
self.update();
});