fix fee service

This commit is contained in:
Javier 2016-11-03 18:27:59 -03:00
commit 9092ee73dd
2 changed files with 17 additions and 17 deletions

View file

@ -22,9 +22,9 @@ angular.module('copayApp.controllers').controller('amountController', function($
$scope.toEmail = data.stateParams.toEmail;
$scope.showAlternativeAmount = !!$scope.cardId || !!$scope.isGiftCard;
$scope.toColor = data.stateParams.toColor;
var network = (new bitcore.Address($scope.toAddress)).network.name;
$scope.network = (new bitcore.Address($scope.toAddress)).network.name;
$scope.wallets = profileService.getWallets({
network: network
network: $scope.network
});
$scope.customAmount = data.stateParams.customAmount;
@ -83,7 +83,7 @@ angular.module('copayApp.controllers').controller('amountController', function($
});
$scope.getSendMaxInfo = function(wallet) {
feeService.getCurrentFeeValue(function(err, fee) {
feeService.getCurrentFeeValue($scope.network, function(err, fee) {
if (err) {
popupService.showAlert(gettextCatalog.getString('Error'), err.message);
return;