diff --git a/src/js/controllers/topup.js b/src/js/controllers/topup.js index 9dfca6863..6ed932eca 100644 --- a/src/js/controllers/topup.js +++ b/src/js/controllers/topup.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('copayApp.controllers').controller('topUpController', function($scope, $log, $state, $timeout, $ionicHistory, $ionicConfig, $sce, lodash, popupService, profileService, ongoingProcess, walletService, configService, platformInfo, bitpayService, bitpayCardService, payproService, bwcError, txFormatService, sendMaxService) { +angular.module('copayApp.controllers').controller('topUpController', function($scope, $log, $state, $timeout, $ionicHistory, $ionicConfig, lodash, popupService, profileService, ongoingProcess, walletService, configService, platformInfo, bitpayService, bitpayCardService, payproService, bwcError, txFormatService, sendMaxService) { var amount; var currency; @@ -95,14 +95,13 @@ angular.module('copayApp.controllers').controller('topUpController', function($s var code; switch(currencyCode) { case 'EUR': - code = '€'; + $scope.currencySymbol = '€'; break; case 'GBP': - code = '£'; + $scope.currencySymbol = '£'; break; - default : code = '$'; + default : $scope.currencySymbol = '$'; }; - $scope.htmlCurrencyCode = $sce.trustAsHtml(code); bitpayCardService.getRates(currencyCode, function(err, data) { if (err) $log.error(err); $scope.rate = data.rate; diff --git a/www/views/topup.html b/www/views/topup.html index 42f5f4003..2542c645f 100644 --- a/www/views/topup.html +++ b/www/views/topup.html @@ -20,8 +20,7 @@
{{amountUnitStr}}
@ - - {{rate | currency:' ':2}} per BTC + {{rate | currency:currencySymbol:2}} per BTC ...