Use an environment object instead of string.

This commit is contained in:
Andy Phillipson 2017-01-05 16:29:17 -05:00
commit 28f9fbc0b6
5 changed files with 22 additions and 17 deletions

View file

@ -7,7 +7,7 @@ angular.module('copayApp.controllers').controller('bitpayCardController', functi
$scope.dateRange = {
value: 'last30Days'
};
$scope.network = bitpayService.getEnvironment();
$scope.network = bitpayService.getEnvironment().network;
var updateHistoryFromCache = function(cb) {
bitpayCardService.getBitpayDebitCardsHistory($scope.cardId, function(err, data) {