Adds btc value before confirm

This commit is contained in:
Gustavo Maximiliano Cortez 2017-01-16 17:21:43 -03:00
commit 55bd2355b9
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
4 changed files with 4 additions and 0 deletions

View file

@ -36,6 +36,7 @@ angular.module('copayApp.controllers').controller('buyCoinbaseController', funct
$scope.$on("$ionicView.beforeEnter", function(event, data) {
coinbaseService.setCredentials();
$scope.isFiat = data.stateParams.currency ? true : false;
[amount, currency, $scope.amountUnitStr] = coinbaseService.parseAmount(
data.stateParams.amount,
data.stateParams.currency);

View file

@ -119,6 +119,7 @@ angular.module('copayApp.controllers').controller('sellCoinbaseController', func
$scope.$on("$ionicView.beforeEnter", function(event, data) {
coinbaseService.setCredentials();
$scope.isFiat = data.stateParams.currency ? true : false;
[amount, currency, $scope.amountUnitStr] = coinbaseService.parseAmount(
data.stateParams.amount,
data.stateParams.currency);