use coin in sendMax

This commit is contained in:
matiu 2017-09-15 16:06:06 -03:00
commit cfe7597465
2 changed files with 4 additions and 3 deletions

View file

@ -373,7 +373,7 @@ angular.module('copayApp.controllers').controller('amountController', function($
id: _id,
amount: $scope.useSendMax ? null : _amount,
currency: unit.id.toUpperCase(),
coin: $scope.useSendMax ? null : coin,
coin: coin,
useSendMax: $scope.useSendMax
});
} else {
@ -392,7 +392,7 @@ angular.module('copayApp.controllers').controller('amountController', function($
toName: $scope.toName,
toEmail: $scope.toEmail,
toColor: $scope.toColor,
coin: $scope.useSendMax ? null : coin,
coin: coin,
useSendMax: $scope.useSendMax
});
}

View file

@ -121,7 +121,8 @@ angular.module('copayApp.controllers').controller('confirmController', function(
};
// Setup $scope
//
var B = data.stateParams.coin == 'bch' ? bitcoreCash : bitcore;
// Grab stateParams